Skip to content

Commit 400a2e3

Browse files
committed
[analysis] Turn on the pass manager notification verifier analysis.
When asserts are enabled this tracks the add/delete notifications from the SILPassManager it belongs to. When the SILPassManager is destroyed, the analysis verifies that it worked correctly by looping over all the functions in the module and verifying that its internal state is consistent with the module. This will ensure we never lose add/delete notification events ever again by mistake. rdar://42301529
1 parent 3c58cd5 commit 400a2e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/SILOptimizer/Analysis/PassManagerVerifierAnalysis.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ static llvm::cl::opt<bool>
1919
EnableVerifier("enable-sil-passmanager-verifier-analysis",
2020
llvm::cl::desc("Enable verification of the passmanagers "
2121
"function notification infrastructure"),
22-
llvm::cl::init(false));
22+
llvm::cl::init(true));
2323

2424
using namespace swift;
2525

0 commit comments

Comments
 (0)