avoid double negatives

llvm-svn: 100976
This commit is contained in:
Chris Lattner 2010-04-11 18:53:08 +00:00
parent 5868ec6e3d
commit 6033be79b3
2 changed files with 2 additions and 2 deletions

View File

@ -2012,7 +2012,7 @@ def error_no_super_class : Error<
def err_invalid_receiver_to_message : Error<
"invalid receiver to message expression">;
def err_invalid_receiver_to_message_super : Error<
"'super' not valid when not in a method">;
"'super' is only valid in a method body">;
def warn_bad_receiver_type : Warning<
"receiver type %0 is not 'id' or interface pointer, consider "
"casting it to 'id'">;

View File

@ -37,7 +37,7 @@ void f0(int super) {
expected-warning {{method '-m' not found (return type defaults to 'id')}}
}
void f1(int puper) {
[super m]; // expected-error{{'super' not valid when not in a method}}
[super m]; // expected-error{{'super' is only valid in a method body}}
}
// radar 7400691