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

Devang Patel dpatel at apple.com
Tue Oct 12 16:23:25 PDT 2010


Author: dpatel
Date: Tue Oct 12 18:23:25 2010
New Revision: 116371

URL: http://llvm.org/viewvc/llvm-project?rev=116371&view=rev
Log:
Fix anon union member assignment expression's location.
This is tested by anon-union.exp in gdb testsuite.

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=116371&r1=116370&r2=116371&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaExpr.cpp (original)
+++ cfe/trunk/lib/Sema/SemaExpr.cpp Tue Oct 12 18:23:25 2010
@@ -570,7 +570,7 @@
     // therefore, not part of another non-anonymous record).
     MarkDeclarationReferenced(Loc, BaseObject);
     BaseObjectExpr = new (Context) DeclRefExpr(BaseObject,BaseObject->getType(),
-                                               SourceLocation());
+                                               Loc);
     BaseQuals
       = Context.getCanonicalType(BaseObject->getType()).getQualifiers();
   } else if (BaseObjectExpr) {





More information about the cfe-commits mailing list