[PATCH] D91329: [NewPM] Re-enable PreserveCFGChecker

Yevgeny Rouban via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 12 01:05:34 PST 2020


yrouban created this revision.
yrouban added reviewers: skatkov, kuhar, asbirlea, fedor.sergeev.
Herald added a subscriber: hiraditya.
Herald added a project: LLVM.
yrouban requested review of this revision.

Enable the redesigned PreserveCFGChecker (D91327 <https://reviews.llvm.org/D91327>) for debug builds by setting the default value of the option //-verify-cfg-preserved//.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D91329

Files:
  llvm/lib/Passes/StandardInstrumentations.cpp


Index: llvm/lib/Passes/StandardInstrumentations.cpp
===================================================================
--- llvm/lib/Passes/StandardInstrumentations.cpp
+++ llvm/lib/Passes/StandardInstrumentations.cpp
@@ -43,7 +43,7 @@
 #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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D91329.304744.patch
Type: text/x-patch
Size: 414 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201112/e58d5d69/attachment.bin>


More information about the llvm-commits mailing list