From b5c63e30ca1af7e36ba5069eb0121d1eb4b06ebb Mon Sep 17 00:00:00 2001 From: Yevgeny Rouban Date: Wed, 7 Apr 2021 08:34:30 +0700 Subject: [PATCH] [NewPM] Set verify-cfg-preserved=1 by default for debug builds --- llvm/lib/Passes/StandardInstrumentations.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 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