[clang] 6241cb3 - Driver: Fix two comments for accuracy.

via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 10 10:50:11 PDT 2025


Author: Peter Collingbourne
Date: 2025-09-10T10:50:08-07:00
New Revision: 6241cb34befb10ceff75293ce17560f016e2e79b

URL: https://github.com/llvm/llvm-project/commit/6241cb34befb10ceff75293ce17560f016e2e79b
DIFF: https://github.com/llvm/llvm-project/commit/6241cb34befb10ceff75293ce17560f016e2e79b.diff

LOG: Driver: Fix two comments for accuracy.



Reviewers: carlocab, AaronBallman

Reviewed By: carlocab

Pull Request: https://github.com/llvm/llvm-project/pull/157769

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 2371128392785..6aa228826bab2 100644
--- a/clang/lib/Driver/ToolChains/Clang.cpp
+++ b/clang/lib/Driver/ToolChains/Clang.cpp
@@ -5453,13 +5453,14 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
   const bool IsAssertBuild = true;
 #endif
 
-  // Disable the verification pass in asserts builds unless otherwise specified.
+  // Disable the verification pass in no-asserts builds unless otherwise
+  // specified.
   if (Args.hasFlag(options::OPT_fno_verify_intermediate_code,
                    options::OPT_fverify_intermediate_code, !IsAssertBuild)) {
     CmdArgs.push_back("-disable-llvm-verifier");
   }
 
-  // Discard value names in assert builds unless otherwise specified.
+  // Discard value names in no-asserts builds unless otherwise specified.
   if (Args.hasFlag(options::OPT_fdiscard_value_names,
                    options::OPT_fno_discard_value_names, !IsAssertBuild)) {
     if (Args.hasArg(options::OPT_fdiscard_value_names) &&


        


More information about the cfe-commits mailing list