Skip to content

Commit 4cfdef7

Browse files
authored
[clang] Fix '__cdecl' CC is not supported for this target (#74932)
Fixes regression introduced in b3e6ff3 Fixes bot failure https://lab.llvm.org/buildbot/#/builders/60/builds/15037 ``` .---command stderr------------ | error: 'supported-warning' diagnostics seen but not expected: | File C:\buildbot\as-builder-1\x-armv7l\llvm-project\clang\test\SemaCXX\ms-constexpr-new.cpp Line 7: '__cdecl' calling convention is not supported for this target | 1 error generated. `----------------------------- ```
1 parent 600462a commit 4cfdef7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/test/SemaCXX/ms-constexpr-new.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
[[nodiscard]]
66
[[msvc::constexpr]] // unsupported-warning {{unknown attribute 'constexpr' ignored}}
7-
inline void* __cdecl operator new(decltype(sizeof(void*)), void* p) noexcept { return p; }
7+
inline void* operator new(decltype(sizeof(void*)), void* p) noexcept { return p; }
88

99
namespace std {
1010
constexpr int* construct_at(int* p, int v) {

0 commit comments

Comments
 (0)