Skip to content

Commit 0385b36

Browse files
andreytr4intelaus-intel
authored andcommitted
Add all input types for passing -O0 as -optimize=none to VC CodeGen
1 parent f4c6e57 commit 0385b36

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/Driver/ToolChains/Clang.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -4119,10 +4119,10 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
41194119
CmdArgs.push_back("-fcm-pointer");
41204120
if (Args.getLastArg(options::OPT_mCM_enable_stackcalls))
41214121
CmdArgs.push_back("-mCM_enable_stackcalls");
4122-
if (Arg *A = Args.getLastArg(options::OPT_O_Group)) {
4123-
if (A->getOption().matches(options::OPT_O0))
4124-
CmdArgs.push_back("-mCM_optimize_none");
4125-
}
4122+
}
4123+
if (Arg *A = Args.getLastArg(options::OPT_O_Group)) {
4124+
if (A->getOption().matches(options::OPT_O0))
4125+
CmdArgs.push_back("-mCM_optimize_none");
41264126
}
41274127
// As backend depends on this option, it is passed even if the input is not
41284128
// CM text (e.g. the input is spir-v).

0 commit comments

Comments
 (0)