Fix <rdar://problem/6770998> make cast of super illegal (again:-)



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68659 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Sema/SemaExpr.cpp b/lib/Sema/SemaExpr.cpp
index 4f8ad5b..cb7a90f 100644
--- a/lib/Sema/SemaExpr.cpp
+++ b/lib/Sema/SemaExpr.cpp
@@ -2510,7 +2510,7 @@
     if (CheckVectorCast(TyR, castType, castExpr->getType()))
       return true;
   } else if (getLangOptions().ObjC1 && isa<ObjCSuperExpr>(castExpr)) {
-    Diag(castExpr->getLocStart(), diag::warn_super_cast_deprecated) << TyR;
+    return Diag(castExpr->getLocStart(), diag::err_illegal_super_cast) << TyR;
   }
   return false;
 }