diff options
author | Steve Naroff <snaroff@apple.com> | 2008-06-03 18:21:00 +0000 |
---|---|---|
committer | Steve Naroff <snaroff@apple.com> | 2008-06-03 18:21:00 +0000 |
commit | 053d71c233e54b5199672c068bad7ba3f6ee85bb (patch) | |
tree | e8487801a4461cbc8fcfc687d8030b0096bbd755 | |
parent | cf00e0bee3c664eff8c2f00272ddcf17a321b78f (diff) |
Fixup recent "super" regression.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51913 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Sema/SemaExpr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaExpr.cpp b/lib/Sema/SemaExpr.cpp index 8b31d8856a..5108e09281 100644 --- a/lib/Sema/SemaExpr.cpp +++ b/lib/Sema/SemaExpr.cpp @@ -99,7 +99,7 @@ Sema::ExprResult Sema::ActOnIdentifierExpr(Scope *S, SourceLocation Loc, static_cast<Expr*>(SelfExpr.Val), true, true); } } - if (!strncmp(II.getName(), "super", 5)) { + if (SD == 0 && !strncmp(II.getName(), "super", 5)) { QualType T = Context.getPointerType(Context.getObjCInterfaceType( CurMethodDecl->getClassInterface())); return new ObjCSuperRefExpr(T, Loc); |