summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2008-10-17 23:05:02 +0000
committerDaniel Dunbar <daniel@zuster.org>2008-10-17 23:05:02 +0000
commit1ea1aa2cc1c8402b4b5675582a259d75f416edc8 (patch)
tree0e260ff83d625f53a420c53e09163c70d0363439 /clang/lib/CodeGen
parent6ccea71c647d1386dc62f3367225a842ac686723 (diff)
downloadbcm5719-llvm-1ea1aa2cc1c8402b4b5675582a259d75f416edc8.tar.gz
bcm5719-llvm-1ea1aa2cc1c8402b4b5675582a259d75f416edc8.zip
Emit more descriptive unsupported error message on dot-syntax use of super.
llvm-svn: 57745
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r--clang/lib/CodeGen/CGExpr.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGExpr.cpp b/clang/lib/CodeGen/CGExpr.cpp
index 34d025d289b..fa70f47da92 100644
--- a/clang/lib/CodeGen/CGExpr.cpp
+++ b/clang/lib/CodeGen/CGExpr.cpp
@@ -571,6 +571,8 @@ LValue CodeGenFunction::EmitPredefinedLValue(const PredefinedExpr *E) {
case PredefinedExpr::Function:
case PredefinedExpr::PrettyFunction:
return EmitPredefinedFunctionName(E->getIdentType());
+ case PredefinedExpr::ObjCSuper:
+ return EmitUnsupportedLValue(E, "use of super");
}
}
OpenPOWER on IntegriCloud