[clang] 4cfdef7 - [clang] Fix '__cdecl' CC is not supported for this target (#74932)

via cfe-commits cfe-commits at lists.llvm.org
Sat Dec 9 06:40:08 PST 2023


Author: Richard Dzenis
Date: 2023-12-09T18:40:04+04:00
New Revision: 4cfdef76a2228b1b52df82fc83f58b9453397d98

URL: https://github.com/llvm/llvm-project/commit/4cfdef76a2228b1b52df82fc83f58b9453397d98
DIFF: https://github.com/llvm/llvm-project/commit/4cfdef76a2228b1b52df82fc83f58b9453397d98.diff

LOG: [clang] Fix '__cdecl' CC is not supported for this target (#74932)

Fixes regression introduced in b3e6ff331925dde24a4707452d657da0fdf7f588
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.
    `-----------------------------
```

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/clang/test/SemaCXX/ms-constexpr-new.cpp b/clang/test/SemaCXX/ms-constexpr-new.cpp
index 05ee5c5b4e154..30567740b2ecb 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) {


        


More information about the cfe-commits mailing list