Author: Marco Elver Date: 2025-08-22T18:36:17Z New Revision: f84037ea2e71420f6e3724e9d5409be071dbf115
URL: https://github.com/llvm/llvm-project/commit/f84037ea2e71420f6e3724e9d5409be071dbf115 DIFF: https://github.com/llvm/llvm-project/commit/f84037ea2e71420f6e3724e9d5409be071dbf115.diff LOG: [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. Added: Modified: clang/lib/Driver/ToolChains/Clang.cpp Removed: ################################################################################ diff --git a/clang/lib/Driver/ToolChains/Clang.cpp b/clang/lib/Driver/ToolChains/Clang.cpp index 29b7180df5cb5..e8181dca59c17 100644 --- a/clang/lib/Driver/ToolChains/Clang.cpp +++ b/clang/lib/Driver/ToolChains/Clang.cpp @@ -5981,12 +5981,13 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA, Args.AddLastArg(CmdArgs, options::OPT_fno_knr_functions); - // This is a coarse approximation of what llvm-gcc actually does, both - // -fasynchronous-unwind-tables and -fnon-call-exceptions interact in more - // complicated ways. auto SanitizeArgs = TC.getSanitizerArgs(Args); Args.AddLastArg(CmdArgs, options::OPT_fallow_runtime_check_skip_hot_cutoff_EQ); + + // This is a coarse approximation of what llvm-gcc actually does, both + // -fasynchronous-unwind-tables and -fnon-call-exceptions interact in more + // complicated ways. bool IsAsyncUnwindTablesDefault = TC.getDefaultUnwindTableLevel(Args) == ToolChain::UnwindTableLevel::Asynchronous; bool IsSyncUnwindTablesDefault = _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits