[clang] [clang][HIP] Normalize __cdecl on abstract function types to the device default CC on amdgcnspirv (PR #210882)

Arseniy Obolenskiy via cfe-commits cfe-commits at lists.llvm.org
Sun Aug 9 21:28:20 PDT 2026


================
@@ -172,8 +200,14 @@ class LLVM_LIBRARY_VISIBILITY BaseSPIRTargetInfo : public TargetInfo {
                                                             : CCCR_Warning;
   }
 
-  CallingConv getDefaultCallingConv() const override {
-    return CC_SpirFunction;
+  CallingConv getDefaultCallingConv() const override { return CC_C; }
----------------
aobolensk wrote:

Removed

https://github.com/llvm/llvm-project/pull/210882


More information about the cfe-commits mailing list