summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaExpr.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2008-11-04 14:56:14 +0000
committerDouglas Gregor <dgregor@apple.com>2008-11-04 14:56:14 +0000
commit8ea1f53420c063e893c055ebeb6bac7da8fb8785 (patch)
tree024973249c4bc6b5be1b940a182a895393d66ce2 /clang/lib/Sema/SemaExpr.cpp
parentc6a5b0979f5132b6553008c98d442b14b5fdc331 (diff)
downloadbcm5719-llvm-8ea1f53420c063e893c055ebeb6bac7da8fb8785.tar.gz
bcm5719-llvm-8ea1f53420c063e893c055ebeb6bac7da8fb8785.zip
Add a new expression class, ObjCSuperExpr, to handle the Objective-C 'super'. Remove ObjCThis from PredefinedExpr
llvm-svn: 58698
Diffstat (limited to 'clang/lib/Sema/SemaExpr.cpp')
-rw-r--r--clang/lib/Sema/SemaExpr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaExpr.cpp b/clang/lib/Sema/SemaExpr.cpp
index f06a04101b8..c0abc9e51ae 100644
--- a/clang/lib/Sema/SemaExpr.cpp
+++ b/clang/lib/Sema/SemaExpr.cpp
@@ -365,7 +365,7 @@ Sema::ExprResult Sema::ActOnIdentifierExpr(Scope *S, SourceLocation Loc,
if (SD == 0 && &II == SuperID) {
QualType T = Context.getPointerType(Context.getObjCInterfaceType(
getCurMethodDecl()->getClassInterface()));
- return new PredefinedExpr(Loc, T, PredefinedExpr::ObjCSuper);
+ return new ObjCSuperExpr(Loc, T);
}
}
if (D == 0) {
OpenPOWER on IntegriCloud