Fixup recent "super" regression.

llvm-svn: 51913
This commit is contained in:
Steve Naroff 2008-06-03 18:21:00 +00:00
parent 4c75de7f39
commit ec62418fc5
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ Sema::ExprResult Sema::ActOnIdentifierExpr(Scope *S, SourceLocation Loc,
static_cast<Expr*>(SelfExpr.Val), true, true); 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( QualType T = Context.getPointerType(Context.getObjCInterfaceType(
CurMethodDecl->getClassInterface())); CurMethodDecl->getClassInterface()));
return new ObjCSuperRefExpr(T, Loc); return new ObjCSuperRefExpr(T, Loc);