Skip to content

Commit 4a3e76b

Browse files
authored
Merge pull request #31615 from eeckstein/fix-compile-error
2 parents 4b91ff7 + 3c3425d commit 4a3e76b

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)