diff --git a/clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp b/clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp index c0def22c4147f..57273b022dbae 100644 --- a/clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp +++ b/clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp @@ -545,8 +545,9 @@ getTripleBasedSYCLPostLinkOpts(const ArgList &Args, else PostLinkArgs.push_back("-spec-const=emulation"); - if (Triple.isSPIROrSPIRV() || SYCLNativeCPU) - PostLinkArgs.push_back("-properties"); + // TODO: If we ever pass -ir-output-only based on the triple, + // make sure we don't pass -properties. + PostLinkArgs.push_back("-properties"); // See if device code splitting is already requested. If not requested, then // set -split=auto for non-FPGA targets.