[clang] [clang] Fix '__cdecl' CC is not supported for this target (PR #74932)
via cfe-commits
cfe-commits at lists.llvm.org
Sat Dec 9 05:47:22 PST 2023
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang
Author: Richard Dzenis (RIscRIpt)
<details>
<summary>Changes</summary>
Fixes regression introduced in b3e6ff331925dde24a4707452d657da0fdf7f588
.---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.
`-----------------------------
---
Full diff: https://github.com/llvm/llvm-project/pull/74932.diff
1 Files Affected:
- (modified) clang/test/SemaCXX/ms-constexpr-new.cpp (+1-1)
``````````diff
diff --git a/clang/test/SemaCXX/ms-constexpr-new.cpp b/clang/test/SemaCXX/ms-constexpr-new.cpp
index 05ee5c5b4e154a..30567740b2ecbb 100644
--- a/clang/test/SemaCXX/ms-constexpr-new.cpp
+++ b/clang/test/SemaCXX/ms-constexpr-new.cpp
@@ -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) {
``````````
</details>
https://github.com/llvm/llvm-project/pull/74932
More information about the cfe-commits
mailing list