Skip to content

Commit 64b2eb0

Browse files
committed
Disable dihole verifier in a non-asserts build
(cherry picked from commit b6be6ad)
1 parent 457589a commit 64b2eb0

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

lib/SIL/Verifier/SILVerifier.cpp

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,15 @@ static llvm::cl::opt<bool> ContinueOnFailure("verify-continue-on-failure",
6969
static llvm::cl::opt<bool> DumpModuleOnFailure("verify-dump-module-on-failure",
7070
llvm::cl::init(false));
7171

72-
static llvm::cl::opt<bool> VerifyDIHoles(
73-
"verify-di-holes",
74-
llvm::cl::init(true));
72+
// This verification is affects primarily debug info and end users don't derive
73+
// a benefit from seeing its results.
74+
static llvm::cl::opt<bool> VerifyDIHoles("verify-di-holes", llvm::cl::init(
75+
#ifndef NDEBUG
76+
true
77+
#else
78+
false
79+
#endif
80+
));
7581

7682
static llvm::cl::opt<bool> SkipConvertEscapeToNoescapeAttributes(
7783
"verify-skip-convert-escape-to-noescape-attributes", llvm::cl::init(false));

0 commit comments

Comments
 (0)