File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -510,7 +510,7 @@ static void addImpliedArgs(const llvm::Triple &Triple,
510
510
if (!A->getOption ().matches (options::OPT_g0))
511
511
BeArgs.push_back (" -g" );
512
512
if (Args.getLastArg (options::OPT_O0))
513
- BeArgs.push_back (IsGen ? " -O0 " : " -cl-opt-disable" );
513
+ BeArgs.push_back (" -cl-opt-disable" );
514
514
if (BeArgs.empty ())
515
515
return ;
516
516
if (Triple.getSubArch () == llvm::Triple::NoSubArch ||
Original file line number Diff line number Diff line change 758
758
// RUN: | FileCheck -check-prefix=CHK-TOOLS-IMPLIED-OPTS-GEN %s
759
759
// RUN: %clang_cl -### -fsycl -fsycl-targets=spir64_gen-unknown-unknown-sycldevice -Zi -Od -Xsycl-target-backend "-DFOO1 -DFOO2" %s 2>&1 \
760
760
// RUN: | FileCheck -check-prefix=CHK-TOOLS-IMPLIED-OPTS-GEN %s
761
- // CHK-TOOLS-IMPLIED-OPTS-GEN: ocloc{{.*}} "-options" "-g -O0 " "-DFOO1" "-DFOO2"
761
+ // CHK-TOOLS-IMPLIED-OPTS-GEN: ocloc{{.*}} "-options" "-g -cl-opt-disable " "-DFOO1" "-DFOO2"
762
762
763
763
/// Check -Xsycl-target-linker option passing
764
764
// RUN: %clang -### -target x86_64-unknown-linux-gnu -fsycl -fsycl-targets=spir64_fpga-unknown-unknown-sycldevice -Xsycl-target-linker "-DFOO1 -DFOO2" %s 2>&1 \
You can’t perform that action at this time.
0 commit comments