[llvm] b5c63e3 - [NewPM] Set verify-cfg-preserved=1 by default for debug builds

Yevgeny Rouban via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 6 18:36:10 PDT 2021


Author: Yevgeny Rouban
Date: 2021-04-07T08:34:30+07:00
New Revision: b5c63e30ca1af7e36ba5069eb0121d1eb4b06ebb

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

LOG: [NewPM] Set verify-cfg-preserved=1 by default for debug builds

Added: 
    

Modified: 
    llvm/lib/Passes/StandardInstrumentations.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Passes/StandardInstrumentations.cpp b/llvm/lib/Passes/StandardInstrumentations.cpp
index 93cc50042be0..71482030fed6 100644
--- a/llvm/lib/Passes/StandardInstrumentations.cpp
+++ b/llvm/lib/Passes/StandardInstrumentations.cpp
@@ -41,7 +41,7 @@ cl::opt<bool> PreservedCFGCheckerInstrumentation::VerifyPreservedCFG(
 #ifdef NDEBUG
     cl::init(false));
 #else
-    cl::init(false));
+    cl::init(true));
 #endif
 
 // FIXME: Change `-debug-pass-manager` from boolean to enum type. Similar to


        


More information about the llvm-commits mailing list