aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGExpr.cpp
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
commit961b03c95dfbfb055143a25e714144976f74d2a1 (patch)
tree79cb98a321d9a75dec704e80a7a50daacc96f085 /lib/CodeGen/CGExpr.cpp
parent63c3a5fcddaa493b6b95ed8f5d2d329d931fff3e (diff)
Emit more descriptive unsupported error message on dot-syntax use of super.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57745 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExpr.cpp')
-rw-r--r--lib/CodeGen/CGExpr.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/CodeGen/CGExpr.cpp b/lib/CodeGen/CGExpr.cpp
index 34d025d289..fa70f47da9 100644
--- a/lib/CodeGen/CGExpr.cpp
+++ b/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");
}
}