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

Argiris Kirtzidis akyrtzi at gmail.com
Sat Jul 18 01:49:38 PDT 2009


Author: akirtzidis
Date: Sat Jul 18 03:49:37 2009
New Revision: 76295

URL: http://llvm.org/viewvc/llvm-project?rev=76295&view=rev
Log:
Don't add a SourceLocation for 'self' if it does not actually appears in the source code.

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=76295&r1=76294&r2=76295&view=diff

==============================================================================
--- cfe/trunk/lib/Sema/SemaExpr.cpp (original)
+++ cfe/trunk/lib/Sema/SemaExpr.cpp Sat Jul 18 03:49:37 2009
@@ -902,7 +902,8 @@
           // FIXME: This should use a new expr for a direct reference, don't
           // turn this into Self->ivar, just return a BareIVarExpr or something.
           IdentifierInfo &II = Context.Idents.get("self");
-          OwningExprResult SelfExpr = ActOnIdentifierExpr(S, Loc, II, false);
+          OwningExprResult SelfExpr = ActOnIdentifierExpr(S, SourceLocation(),
+                                                          II, false);
           MarkDeclarationReferenced(Loc, IV);
           return Owned(new (Context) 
                        ObjCIvarRefExpr(IV, IV->getType(), Loc, 





More information about the cfe-commits mailing list