diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2013-01-24 23:24:32 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2013-01-24 23:24:32 +0000 |
commit | ee19ceb4099cd41be3b294adfc25a4f8137ad64f (patch) | |
tree | 4d48ba4feba9d7dbee7576a53255d41f899a432c | |
parent | 4a44beb5fd1b0c4ad720ede3967a5398018c7f47 (diff) | |
download | bcm5719-llvm-ee19ceb4099cd41be3b294adfc25a4f8137ad64f.tar.gz bcm5719-llvm-ee19ceb4099cd41be3b294adfc25a4f8137ad64f.zip |
Fixes text of diagnostics in integer overflow patch.
llvm-svn: 173388
-rw-r--r-- | clang/include/clang/Basic/DiagnosticASTKinds.td | 2 | ||||
-rw-r--r-- | clang/test/Sema/switch-1.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/clang/include/clang/Basic/DiagnosticASTKinds.td b/clang/include/clang/Basic/DiagnosticASTKinds.td index a54f39e1ee0..7074e02ad33 100644 --- a/clang/include/clang/Basic/DiagnosticASTKinds.td +++ b/clang/include/clang/Basic/DiagnosticASTKinds.td @@ -107,7 +107,7 @@ def note_constexpr_calls_suppressed : Note< "see all)">; def note_constexpr_call_here : Note<"in call to '%0'">; def warn_integer_constant_overflow : Warning< - "overflow in case constant expression results in value %0 of type %1">, + "overflow of constant expression results in value %0 of type %1">, InGroup<DiagGroup<"integer-overflow">>; // inline asm related. diff --git a/clang/test/Sema/switch-1.c b/clang/test/Sema/switch-1.c index bcf30a8d500..50129c3ee21 100644 --- a/clang/test/Sema/switch-1.c +++ b/clang/test/Sema/switch-1.c @@ -4,11 +4,11 @@ int f(int i) { switch (i) { - case 2147483647 + 2: // expected-warning {{overflow in case constant expression results in value -2147483647 of type 'int'}} + case 2147483647 + 2: // expected-warning {{overflow of constant expression results in value -2147483647 of type 'int'}} return 1; - case 9223372036854775807L * 4: // expected-warning {{overflow in case constant expression results in value -4 of type 'long'}} + case 9223372036854775807L * 4: // expected-warning {{overflow of constant expression results in value -4 of type 'long'}} return 2; - case (123456 *789012) + 1: // expected-warning {{overflow in case constant expression results in value -1375982336 of type 'int'}} + case (123456 *789012) + 1: // expected-warning {{overflow of constant expression results in value -1375982336 of type 'int'}} return 3; case 2147483647: return 0; |