From: Ted Kremenek Date: Fri, 27 Feb 2009 19:58:12 +0000 (+0000) Subject: In BuildAnonymousStructUnionMemberReference, we shouldn't invalidate OpLoc when X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a97b6666d2e08027e89a01ed718affbf969fad19;p=clang 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 . git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65650 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaExpr.cpp b/lib/Sema/SemaExpr.cpp index 43cbe98d87..8604670d6e 100644 --- a/lib/Sema/SemaExpr.cpp +++ b/lib/Sema/SemaExpr.cpp @@ -600,7 +600,6 @@ Sema::BuildAnonymousStructUnionMemberReference(SourceLocation Loc, OpLoc, MemberType); BaseObjectIsPointer = false; ExtraQuals = Context.getCanonicalType(MemberType).getCVRQualifiers(); - OpLoc = SourceLocation(); } return Owned(Result);