Skip to content

Commit

Permalink
[clang] Fix '__cdecl' CC is not supported for this target (#74932)
Browse files Browse the repository at this point in the history
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.
    `-----------------------------
```
  • Loading branch information
RIscRIpt committed Dec 9, 2023
1 parent 600462a commit 4cfdef7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clang/test/SemaCXX/ms-constexpr-new.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

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

namespace std {
constexpr int* construct_at(int* p, int v) {
Expand Down

0 comments on commit 4cfdef7

Please sign in to comment.