]> granicus.if.org Git - clang/commitdiff
super fix submitted by David Chisnall.
authorSteve Naroff <snaroff@apple.com>
Thu, 5 Jun 2008 18:14:25 +0000 (18:14 +0000)
committerSteve Naroff <snaroff@apple.com>
Thu, 5 Jun 2008 18:14:25 +0000 (18:14 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@52014 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaExpr.cpp

index 89609501ff872b625d66d68468461c018451f0b9..e918572f35f243ce8818416649c5962aebe19660 100644 (file)
@@ -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);