Skip to content

Commit f84037e

Browse files
authored
[Driver] Fix out of place comment (#155001)
The unrelated code was added in between the comment and what it is meant to document. Move the comment. NFC.
1 parent f6071e9 commit f84037e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

clang/lib/Driver/ToolChains/Clang.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5981,12 +5981,13 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
59815981

59825982
Args.AddLastArg(CmdArgs, options::OPT_fno_knr_functions);
59835983

5984-
// This is a coarse approximation of what llvm-gcc actually does, both
5985-
// -fasynchronous-unwind-tables and -fnon-call-exceptions interact in more
5986-
// complicated ways.
59875984
auto SanitizeArgs = TC.getSanitizerArgs(Args);
59885985
Args.AddLastArg(CmdArgs,
59895986
options::OPT_fallow_runtime_check_skip_hot_cutoff_EQ);
5987+
5988+
// This is a coarse approximation of what llvm-gcc actually does, both
5989+
// -fasynchronous-unwind-tables and -fnon-call-exceptions interact in more
5990+
// complicated ways.
59905991
bool IsAsyncUnwindTablesDefault =
59915992
TC.getDefaultUnwindTableLevel(Args) == ToolChain::UnwindTableLevel::Asynchronous;
59925993
bool IsSyncUnwindTablesDefault =

0 commit comments

Comments
 (0)