diff options
author | Sunil Srivastava <sunil_srivastava@playstation.sony.com> | 2019-07-17 20:41:26 +0000 |
---|---|---|
committer | Sunil Srivastava <sunil_srivastava@playstation.sony.com> | 2019-07-17 20:41:26 +0000 |
commit | 85d667fcb6f34175f9a9af87f58fe05b177e7d82 (patch) | |
tree | f1cb265bb82f901fbd9cd27355b71c43182272e0 /clang/lib/Sema/SemaDecl.cpp | |
parent | 0966dd0d69cf66bcba55a4b5d28b1059b5c9b6a6 (diff) | |
download | bcm5719-llvm-85d667fcb6f34175f9a9af87f58fe05b177e7d82.tar.gz bcm5719-llvm-85d667fcb6f34175f9a9af87f58fe05b177e7d82.zip |
Renamed and changed the wording of warn_cconv_ignored
As discussed in D64780 the wording of this warning message is being
changed to say 'is not supported' instead of 'ignored', and the
diag ID itself is being changed to warn_cconv_not_supported.
llvm-svn: 366368
Diffstat (limited to 'clang/lib/Sema/SemaDecl.cpp')
-rw-r--r-- | clang/lib/Sema/SemaDecl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp index 0709c926ed9..cc91ec59468 100644 --- a/clang/lib/Sema/SemaDecl.cpp +++ b/clang/lib/Sema/SemaDecl.cpp @@ -3165,7 +3165,7 @@ bool Sema::MergeFunctionDecl(FunctionDecl *New, NamedDecl *&OldD, // Calling Conventions on a Builtin aren't really useful and setting a // default calling convention and cdecl'ing some builtin redeclarations is // common, so warn and ignore the calling convention on the redeclaration. - Diag(New->getLocation(), diag::warn_cconv_ignored) + Diag(New->getLocation(), diag::warn_cconv_unsupported) << FunctionType::getNameForCallConv(NewTypeInfo.getCC()) << (int)CallingConventionIgnoredReason::BuiltinFunction; NewTypeInfo = NewTypeInfo.withCallingConv(OldTypeInfo.getCC()); |