From 8f0b10274a0091edc5e1dcec622dc6a3c97f65a8 Mon Sep 17 00:00:00 2001 From: Steve Naroff Date: Thu, 5 Jun 2008 18:14:25 +0000 Subject: [PATCH] super fix submitted by David Chisnall. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@52014 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Sema/SemaExpr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Sema/SemaExpr.cpp b/lib/Sema/SemaExpr.cpp index 89609501ff..e918572f35 100644 --- a/lib/Sema/SemaExpr.cpp +++ b/lib/Sema/SemaExpr.cpp @@ -99,7 +99,7 @@ Sema::ExprResult Sema::ActOnIdentifierExpr(Scope *S, SourceLocation Loc, static_cast(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); -- 2.50.1