Skip to content

Commit 3c3425d

Browse files
committed
SILOwnershipVerifier: fix a compiler error in the no-assert build.
1 parent 4b91ff7 commit 3c3425d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/SIL/Verifier/SILOwnershipVerifier.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -964,7 +964,7 @@ void SILFunction::verifyOwnership(DeadEndBlocks *deadEndBlocks) const {
964964
// that if we run into something that we do not understand, we do not assert
965965
// in user code even tohugh we aren't going to actually verify (the default
966966
// behavior when -sil-verify-all is disabled).
967-
auto *mod = getParent();
967+
auto *mod = &getModule();
968968
if (!mod || !mod->getOptions().VerifyAll)
969969
return;
970970
#endif

0 commit comments

Comments
 (0)