Skip to content

Commit b49f05b

Browse files
committed
Simplify option forwarding
Signed-off-by: Lukas Sommer <[email protected]>
1 parent ef81032 commit b49f05b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

clang/lib/Driver/ToolChains/Clang.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5583,10 +5583,8 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
55835583
CmdArgs.push_back("-fsycl-allow-func-ptr");
55845584
}
55855585

5586-
if (Args.hasFlag(options::OPT_fsycl_rtc_mode,
5587-
options::OPT_fno_sycl_rtc_mode, false)) {
5588-
CmdArgs.push_back("-fsycl-rtc-mode");
5589-
}
5586+
Args.AddLastArg(CmdArgs, options::OPT_fsycl_rtc_mode,
5587+
options::OPT_fno_sycl_rtc_mode);
55905588

55915589
Args.AddLastArg(CmdArgs, options::OPT_fsycl_decompose_functor,
55925590
options::OPT_fno_sycl_decompose_functor);

0 commit comments

Comments
 (0)