Skip to content

Commit 39dd75e

Browse files
committed
some fixes
Signed-off-by: Sarnie, Nick <[email protected]>
1 parent 71850c0 commit 39dd75e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clang/lib/CodeGen/TargetInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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");

clang/test/Frontend/sycl-propagate-aspect-warning.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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

0 commit comments

Comments
 (0)