Skip to content

Commit d7097cb

Browse files
author
Hugh Delaney
committed
Respond to comments
1 parent 42895e2 commit d7097cb

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

clang/lib/Driver/Driver.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5195,10 +5195,9 @@ class OffloadingActionBuilder final {
51955195
// AOT compilation.
51965196
if (isSPIR || isNVPTX) {
51975197
bool UseJitLink =
5198-
isSPIR ? Args.hasFlag(options::OPT_fsycl_device_lib_jit_link,
5199-
options::OPT_fno_sycl_device_lib_jit_link,
5200-
false)
5201-
: false;
5198+
isSPIR &&
5199+
Args.hasFlag(options::OPT_fsycl_device_lib_jit_link,
5200+
options::OPT_fno_sycl_device_lib_jit_link, false);
52025201
bool UseAOTLink = isSPIR && (isSpirvAOT || !UseJitLink);
52035202
SYCLDeviceLibLinked = addSYCLDeviceLibs(
52045203
TC, FullLinkObjects, UseAOTLink,

0 commit comments

Comments
 (0)