[clang] [HLSL][SPIRV] Fix calling convention for call in entry function. (PR #110275)

Nathan Gauër via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 30 06:03:52 PDT 2024


================
@@ -415,6 +415,7 @@ void CGHLSLRuntime::emitEntryFunction(const FunctionDecl *FD,
   }
 
   CallInst *CI = B.CreateCall(FunctionCallee(Fn), Args);
+  CI->setCallingConv(Fn->getCallingConv());
   (void)CI;
----------------
Keenuts wrote:

nit: `(void)CI` can now be removed.

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


More information about the cfe-commits mailing list