]> granicus.if.org Git - clang/commitdiff
Emit more descriptive unsupported error message on dot-syntax use of super.
authorDaniel Dunbar <daniel@zuster.org>
Fri, 17 Oct 2008 23:05:02 +0000 (23:05 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Fri, 17 Oct 2008 23:05:02 +0000 (23:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57745 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGExpr.cpp

index 34d025d289b4cfcfa5b99aa3b542202fa5110c28..fa70f47da9245f9615ee5c2a71fb808d0799b491 100644 (file)
@@ -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");
   }
 }