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

Steve Naroff snaroff at apple.com
Tue Jun 3 11:21:01 PDT 2008


Author: snaroff
Date: Tue Jun  3 13:21:00 2008
New Revision: 51913

URL: http://llvm.org/viewvc/llvm-project?rev=51913&view=rev
Log:
Fixup recent "super" regression.

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=51913&r1=51912&r2=51913&view=diff

==============================================================================
--- cfe/trunk/lib/Sema/SemaExpr.cpp (original)
+++ cfe/trunk/lib/Sema/SemaExpr.cpp Tue Jun  3 13:21:00 2008
@@ -99,7 +99,7 @@
                                  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);





More information about the cfe-commits mailing list