diff options
author | Ted Kremenek <kremenek@apple.com> | 2011-01-23 17:21:34 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2011-01-23 17:21:34 +0000 |
commit | e00909a6e997ec33d9baa5312e9d27b52a3da770 (patch) | |
tree | 44a3f512086746229081b32e7555365a017811e5 /lib/Sema/SemaExprObjC.cpp | |
parent | 9577abc63f2c7afe5adf6e4e101ae91d29c3b8a6 (diff) |
Tweak diagnostic:
error: no super class declared in @interface for 'XXX'
to be:
error: 'X' cannot use 'super' because it is a root class
The latter explains what the user actually did wrong.
Fixes: <rdar://problem/8904409>
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124074 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaExprObjC.cpp')
-rw-r--r-- | lib/Sema/SemaExprObjC.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Sema/SemaExprObjC.cpp b/lib/Sema/SemaExprObjC.cpp index ae18cc12c1..cc087a1a2d 100644 --- a/lib/Sema/SemaExprObjC.cpp +++ b/lib/Sema/SemaExprObjC.cpp @@ -716,7 +716,8 @@ ExprResult Sema::ActOnSuperMessage(Scope *S, ObjCInterfaceDecl *Super = Class->getSuperClass(); if (!Super) { // The current class does not have a superclass. - Diag(SuperLoc, diag::error_no_super_class) << Class->getIdentifier(); + Diag(SuperLoc, diag::error_root_class_cannot_use_super) + << Class->getIdentifier(); return ExprError(); } |