diff options
| author | Douglas Gregor <dgregor@apple.com> | 2008-11-04 14:56:14 +0000 |
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2008-11-04 14:56:14 +0000 |
| commit | 8ea1f53420c063e893c055ebeb6bac7da8fb8785 (patch) | |
| tree | 024973249c4bc6b5be1b940a182a895393d66ce2 /clang/lib/Sema/SemaExpr.cpp | |
| parent | c6a5b0979f5132b6553008c98d442b14b5fdc331 (diff) | |
| download | bcm5719-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.cpp | 2 |
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) { |

