File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ unsigned TargetCodeGenInfo::getDeviceKernelCallingConv() const {
117117 // to multiple function arguments etc.
118118 return llvm::CallingConv::SPIR_KERNEL;
119119 }
120- if (getABIInfo ().getContext ().getLangOpts ().SYCLIsNativeCPU ) {
120+ if (getABIInfo ().getContext ().getTargetInfo ().getTriple (). isNativeCPU () ) {
121121 return llvm::CallingConv::SPIR_KERNEL;
122122 }
123123 llvm_unreachable (" Unknown kernel calling convention" );
Original file line number Diff line number Diff line change 1- // RUN: %clang_cc1 -internal-isystem %S/Inputs -fsycl-is-device -mconstructor-aliases -emit-codegen-only -verify %s
1+ // RUN: %clang_cc1 -internal-isystem %S/Inputs -triple native_cpu - fsycl-is-device -mconstructor-aliases -emit-llvm %s -o /dev/null
22// Tests for warnings when propagated aspects do not match the aspects available
33// in a function, as specified through the 'sycl::device_has' attribute.
44
You can’t perform that action at this time.
0 commit comments