diff options
author | Steve Naroff <snaroff@apple.com> | 2008-06-05 18:14:25 +0000 |
---|---|---|
committer | Steve Naroff <snaroff@apple.com> | 2008-06-05 18:14:25 +0000 |
commit | 8f0b10274a0091edc5e1dcec622dc6a3c97f65a8 (patch) | |
tree | 6aa97530e9880eded52a3c67a3eb3790555d8a72 | |
parent | d100c809314b5c030272c7a7112606095a859434 (diff) |
super fix submitted by David Chisnall.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@52014 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 89609501ff..e918572f35 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 (SD == 0 && !strncmp(II.getName(), "super", 5)) { + if (SD == 0 && !strcmp(II.getName(), "super")) { QualType T = Context.getPointerType(Context.getObjCInterfaceType( CurMethodDecl->getClassInterface())); return new ObjCSuperRefExpr(T, Loc); |