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:
Ted Kremenek 2009-02-27 19:58:12 +00:00
parent fe1e11092e
commit e879e15ed9
1 changed files with 0 additions and 1 deletions

View File

@ -600,7 +600,6 @@ Sema::BuildAnonymousStructUnionMemberReference(SourceLocation Loc,
OpLoc, MemberType);
BaseObjectIsPointer = false;
ExtraQuals = Context.getCanonicalType(MemberType).getCVRQualifiers();
OpLoc = SourceLocation();
}
return Owned(Result);