diff options
author | Alp Toker <alp@nuanti.com> | 2014-05-17 01:13:18 +0000 |
---|---|---|
committer | Alp Toker <alp@nuanti.com> | 2014-05-17 01:13:18 +0000 |
commit | b0869036c1143d53bb5b585ce06258463e7de1b2 (patch) | |
tree | c5357f999c1d337fd4f7d3318ecfbb0503470dad /clang/test/SemaTemplate/constexpr-instantiate.cpp | |
parent | 64a68d61574310c0844a4caefb82f177eba833af (diff) | |
download | bcm5719-llvm-b0869036c1143d53bb5b585ce06258463e7de1b2.tar.gz bcm5719-llvm-b0869036c1143d53bb5b585ce06258463e7de1b2.zip |
Tweak diagnostic wording for init list narrowing
The conventional form is '<action> to silence this warning'.
Also call the diagnostic an 'issue' rather than a 'message' because the latter
term is more widely used with reference to message expressions.
llvm-svn: 209052
Diffstat (limited to 'clang/test/SemaTemplate/constexpr-instantiate.cpp')
-rw-r--r-- | clang/test/SemaTemplate/constexpr-instantiate.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/SemaTemplate/constexpr-instantiate.cpp b/clang/test/SemaTemplate/constexpr-instantiate.cpp index 95d6c23b9e9..e8e3e7dd5a0 100644 --- a/clang/test/SemaTemplate/constexpr-instantiate.cpp +++ b/clang/test/SemaTemplate/constexpr-instantiate.cpp @@ -154,7 +154,7 @@ namespace Unevaluated { constexpr S2() {} constexpr operator int() const { return 123456; } }; - int k2 = sizeof(short{S2(S2())}); // expected-error {{cannot be narrowed}} expected-note {{override}} + int k2 = sizeof(short{S2(S2())}); // expected-error {{cannot be narrowed}} expected-note {{insert an explicit cast to silence this issue}} } namespace PR12288 { |