We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b170e3 commit bdd5232Copy full SHA for bdd5232
clang/lib/CodeGen/Targets/AMDGPU.cpp
@@ -438,8 +438,10 @@ unsigned AMDGPUTargetCodeGenInfo::getOpenCLKernelCallingConv() const {
438
439
void AMDGPUTargetCodeGenInfo::setOCLKernelStubCallingConvention(
440
const FunctionType *&FT) const {
441
+ bool IsSYCL = getABIInfo().getContext().getLangOpts().isSYCL();
442
FT = getABIInfo().getContext().adjustFunctionType(
- FT, FT->getExtInfo().withCallingConv(CC_AMDGPUKernelCall));
443
+ FT,
444
+ FT->getExtInfo().withCallingConv(!IsSYCL ? CC_C : CC_AMDGPUKernelCall));
445
}
446
447
// Currently LLVM assumes null pointers always have value 0,
0 commit comments