Skip to content

Commit e4e5caf

Browse files
author
Sergey Kanaev
committed
[SYCL] Change condition
Signed-off-by: Sergey Kanaev <sergey.kanaev@intel.com>
1 parent 57ad691 commit e4e5caf

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

clang/lib/Driver/ToolChains/Clang.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4131,9 +4131,7 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
41314131
}
41324132
}
41334133

4134-
if ((Args.hasArg(options::OPT_fsycl_device_only) ||
4135-
Args.hasArg(options::OPT_fsycl) || IsSYCL) &&
4136-
!SYCLStdArg) {
4134+
if (UseSYCLTriple && !SYCLStdArg) {
41374135
// The user had not pass SYCL version, thus we'll employ no-sycl-strict
41384136
// to allow address-space unqualified pointers in function params/return
41394137
// along with marking the same function with explicit SYCL_EXTERNAL

0 commit comments

Comments
 (0)