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 {
117
117
// to multiple function arguments etc.
118
118
return llvm::CallingConv::SPIR_KERNEL;
119
119
}
120
- if (getABIInfo ().getContext ().getLangOpts ().SYCLIsNativeCPU ) {
120
+ if (getABIInfo ().getContext ().getTargetInfo ().getTriple (). isNativeCPU () ) {
121
121
return llvm::CallingConv::SPIR_KERNEL;
122
122
}
123
123
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
2
2
// Tests for warnings when propagated aspects do not match the aspects available
3
3
// in a function, as specified through the 'sycl::device_has' attribute.
4
4
You can’t perform that action at this time.
0 commit comments