summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaTemplate/instantiate-function-params.cpp
diff options
context:
space:
mode:
authorErich Keane <erich.keane@intel.com>2019-03-21 13:30:56 +0000
committerErich Keane <erich.keane@intel.com>2019-03-21 13:30:56 +0000
commit505427cb2fe4b7d0290eabbf6785c2a3643ef637 (patch)
tree6872c3a5969a07c10f291f9b564f53dbd4f7f15f /clang/test/SemaTemplate/instantiate-function-params.cpp
parentcbb726d0c5384c029196d4c7160fa91dc3b3f0da (diff)
downloadbcm5719-llvm-505427cb2fe4b7d0290eabbf6785c2a3643ef637.tar.gz
bcm5719-llvm-505427cb2fe4b7d0290eabbf6785c2a3643ef637.zip
Permit redeclarations of a builtin to specify calling convention.
After https://reviews.llvm.org/rL355317 we noticed that quite a decent amount of code redeclares builtins (memcpy in particular, I believe reduced from an MSVC header) with a calling convention specified. This gets particularly troublesome when the user specifies a new 'default' calling convention on the command line. When looking to add a diagnostic for this case, it was noticed that we had 3 other diagnostics that differed only slightly. This patch ALSO unifies those under a 'select'. Unfortunately, the order of words in ONE of these diagnostics was reversed ("'thiscall' calling convention" vs "calling convention 'thiscall'"), so this patch also standardizes on the former. Differential Revision: https://reviews.llvm.org/D59560 Change-Id: I79f99fe7c2301640755ffdd774b46eb44526bb22 llvm-svn: 356663
Diffstat (limited to 'clang/test/SemaTemplate/instantiate-function-params.cpp')
-rw-r--r--clang/test/SemaTemplate/instantiate-function-params.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/SemaTemplate/instantiate-function-params.cpp b/clang/test/SemaTemplate/instantiate-function-params.cpp
index 556a8181f04..7984e258653 100644
--- a/clang/test/SemaTemplate/instantiate-function-params.cpp
+++ b/clang/test/SemaTemplate/instantiate-function-params.cpp
@@ -88,7 +88,7 @@ namespace InstantiateFunctionTypedef {
__attribute__((stdcall)) functype stdfunc1;
stdfunctype stdfunc2;
- __attribute__((pcs("aapcs"))) functype pcsfunc; // expected-warning {{calling convention 'pcs' ignored for this target}}
+ __attribute__((pcs("aapcs"))) functype pcsfunc; // expected-warning {{'pcs' calling convention ignored for this target}}
};
void f(X<int> x) {
OpenPOWER on IntegriCloud