[cfe-commits] r52014 - /cfe/trunk/lib/Sema/SemaExpr.cpp

Steve Naroff snaroff at apple.com
Thu Jun 5 11:14:26 PDT 2008


Author: snaroff
Date: Thu Jun  5 13:14:25 2008
New Revision: 52014

URL: http://llvm.org/viewvc/llvm-project?rev=52014&view=rev
Log:
super fix submitted by David Chisnall.

Modified:
    cfe/trunk/lib/Sema/SemaExpr.cpp

Modified: cfe/trunk/lib/Sema/SemaExpr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaExpr.cpp?rev=52014&r1=52013&r2=52014&view=diff

==============================================================================
--- cfe/trunk/lib/Sema/SemaExpr.cpp (original)
+++ cfe/trunk/lib/Sema/SemaExpr.cpp Thu Jun  5 13:14:25 2008
@@ -99,7 +99,7 @@
                                  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);





More information about the cfe-commits mailing list