[cfe-commits] r65650 - /cfe/trunk/lib/Sema/SemaExpr.cpp

Ted Kremenek kremenek at apple.com
Fri Feb 27 11:58:12 PST 2009


Author: kremenek
Date: Fri Feb 27 13:58:12 2009
New Revision: 65650

URL: http://llvm.org/viewvc/llvm-project?rev=65650&view=rev
Log:
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>.

Modified:
    cfe/trunk/lib/Sema/SemaExpr.cpp

Modified: cfe/trunk/lib/Sema/SemaExpr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaExpr.cpp?rev=65650&r1=65649&r2=65650&view=diff

==============================================================================
--- cfe/trunk/lib/Sema/SemaExpr.cpp (original)
+++ cfe/trunk/lib/Sema/SemaExpr.cpp Fri Feb 27 13:58:12 2009
@@ -600,7 +600,6 @@
                                       OpLoc, MemberType);
     BaseObjectIsPointer = false;
     ExtraQuals = Context.getCanonicalType(MemberType).getCVRQualifiers();
-    OpLoc = SourceLocation();
   }
 
   return Owned(Result);





More information about the cfe-commits mailing list