From ec62418fc5044c112a2fa76cea9235b9d8b465d6 Mon Sep 17 00:00:00 2001 From: Steve Naroff Date: Tue, 3 Jun 2008 18:21:00 +0000 Subject: [PATCH] Fixup recent "super" regression. llvm-svn: 51913 --- clang/lib/Sema/SemaExpr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/lib/Sema/SemaExpr.cpp b/clang/lib/Sema/SemaExpr.cpp index 8b31d8856a78..5108e092813f 100644 --- a/clang/lib/Sema/SemaExpr.cpp +++ b/clang/lib/Sema/SemaExpr.cpp @@ -99,7 +99,7 @@ Sema::ExprResult Sema::ActOnIdentifierExpr(Scope *S, SourceLocation Loc, static_cast(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);