summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorSteve Naroff <snaroff@apple.com>2008-06-03 18:21:00 +0000
committerSteve Naroff <snaroff@apple.com>2008-06-03 18:21:00 +0000
commitec62418fc5044c112a2fa76cea9235b9d8b465d6 (patch)
treec09737778a335c2e0ddb1c7de6a780bf8d5b6d6e /clang/lib
parent4c75de7f39e73b40bd3b16c27fbce2c83965de99 (diff)
downloadbcm5719-llvm-ec62418fc5044c112a2fa76cea9235b9d8b465d6.tar.gz
bcm5719-llvm-ec62418fc5044c112a2fa76cea9235b9d8b465d6.zip
Fixup recent "super" regression.
llvm-svn: 51913
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/Sema/SemaExpr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaExpr.cpp b/clang/lib/Sema/SemaExpr.cpp
index 8b31d8856a7..5108e092813 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<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);
OpenPOWER on IntegriCloud