undefined -> unspecified. Thanks Mike.

llvm-svn: 66388
This commit is contained in:
Chris Lattner 2009-03-08 19:52:14 +00:00
parent 222b8bd6ad
commit 40dc267160
2 changed files with 3 additions and 2 deletions

View File

@ -1349,7 +1349,8 @@ DIAG(warn_ret_stack_ref, WARNING,
DIAG(warn_selfcomparison, WARNING,
"self-comparison always results in a constant value")
DIAG(warn_stringcompare, WARNING,
"comparison against a string literal is undefined (use strcmp?)")
"result of comparison against a string literal is unspecified"
" (use strcmp?)")
// Blocks

View File

@ -78,6 +78,6 @@ void test11(struct mystruct P, float F) {
// PR3753
int test12(const char *X) {
return X == "foo"; // expected-warning {{comparison against a string literal is undefined}}
return X == "foo"; // expected-warning {{comparison against a string literal is unspecified}}
}