forked from OSchip/llvm-project
In BuildAnonymousStructUnionMemberReference, we shouldn't invalidate OpLoc when
building nested member expressions. This location is used to determine the range of the entire expression, and the expression itself already has its location inherited from its Base. This fixes <rdar://problem/6629829>. llvm-svn: 65650
This commit is contained in:
parent
fe1e11092e
commit
e879e15ed9
|
@ -600,7 +600,6 @@ Sema::BuildAnonymousStructUnionMemberReference(SourceLocation Loc,
|
|||
OpLoc, MemberType);
|
||||
BaseObjectIsPointer = false;
|
||||
ExtraQuals = Context.getCanonicalType(MemberType).getCVRQualifiers();
|
||||
OpLoc = SourceLocation();
|
||||
}
|
||||
|
||||
return Owned(Result);
|
||||
|
|
Loading…
Reference in New Issue