Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion clang/lib/Driver/ToolChains/Clang.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5428,7 +5428,7 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
// only be used for SPIR/SPIR-V based targets.
if (Triple.isSPIROrSPIRV())
if (Args.hasFlag(options::OPT_fsycl_instrument_device_code,
options::OPT_fno_sycl_instrument_device_code, true))
options::OPT_fno_sycl_instrument_device_code, false))
CmdArgs.push_back("-fsycl-instrument-device-code");

if (!SYCLStdArg) {
Expand Down
2 changes: 1 addition & 1 deletion clang/lib/Driver/ToolChains/SYCL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ SYCL::getDeviceLibraries(const Compilation &C, const llvm::Triple &TargetTriple,
}

if (Args.hasFlag(options::OPT_fsycl_instrument_device_code,
options::OPT_fno_sycl_instrument_device_code, true))
options::OPT_fno_sycl_instrument_device_code, false))
addLibraries(SYCLDeviceAnnotationLibs);

#if !defined(_WIN32)
Expand Down