summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2009-07-18 08:49:37 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2009-07-18 08:49:37 +0000
commite1a8c62ce71bd0cc9fd4949e860ce0bba8766905 (patch)
treef2cb11afb81e696ff90fb272a6466d589719df35
parent4b9f2d082ab3f6a65f377a7a625ccb97c4b175b1 (diff)
downloadbcm5719-llvm-e1a8c62ce71bd0cc9fd4949e860ce0bba8766905.tar.gz
bcm5719-llvm-e1a8c62ce71bd0cc9fd4949e860ce0bba8766905.zip
Don't add a SourceLocation for 'self' if it does not actually appears in the source code.
llvm-svn: 76295
-rw-r--r--clang/lib/Sema/SemaExpr.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaExpr.cpp b/clang/lib/Sema/SemaExpr.cpp
index 13045580428..35c0ddb06dd 100644
--- a/clang/lib/Sema/SemaExpr.cpp
+++ b/clang/lib/Sema/SemaExpr.cpp
@@ -902,7 +902,8 @@ Sema::ActOnDeclarationNameExpr(Scope *S, SourceLocation Loc,
// 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,
OpenPOWER on IntegriCloud