Skip to content

Commit 30fa15a

Browse files
Merge pull request #73278 from nate-chandler/lifetime-completion/20240425/2
[SIL] Only verify ownership when not disabled.
2 parents 80e1ae3 + 640e398 commit 30fa15a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/SIL/Verifier/SILOwnershipVerifier.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -914,6 +914,8 @@ void SILModule::verifyOwnership() const {
914914
void SILFunction::verifyOwnership(DeadEndBlocks *deadEndBlocks) const {
915915
if (DisableOwnershipVerification)
916916
return;
917+
if (!getModule().getOptions().VerifySILOwnership)
918+
return;
917919

918920
#ifdef NDEBUG
919921
// When compiling without asserts enabled, only verify ownership if

0 commit comments

Comments
 (0)