aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaExpr.cpp
diff options
context:
space:
mode:
authorSteve Naroff <snaroff@apple.com>2009-04-08 23:52:26 +0000
committerSteve Naroff <snaroff@apple.com>2009-04-08 23:52:26 +0000
commita0c3e9cde1581b1b4d43ca89fdf413cd84eaec1f (patch)
tree2dac1b7c1ebd258bf5d7e9d221ac1562742f2833 /lib/Sema/SemaExpr.cpp
parent782f397c1459ef7d8b910c0fb6b95c5f1c19c14f (diff)
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
Diffstat (limited to 'lib/Sema/SemaExpr.cpp')
-rw-r--r--lib/Sema/SemaExpr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaExpr.cpp b/lib/Sema/SemaExpr.cpp
index 4f8ad5b4a5..cb7a90fffc 100644
--- a/lib/Sema/SemaExpr.cpp
+++ b/lib/Sema/SemaExpr.cpp
@@ -2510,7 +2510,7 @@ bool Sema::CheckCastTypes(SourceRange TyR, QualType castType, Expr *&castExpr) {
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;
}