We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4b91ff7 + 3c3425d commit 4a3e76bCopy full SHA for 4a3e76b
lib/SIL/Verifier/SILOwnershipVerifier.cpp
@@ -964,7 +964,7 @@ void SILFunction::verifyOwnership(DeadEndBlocks *deadEndBlocks) const {
964
// that if we run into something that we do not understand, we do not assert
965
// in user code even tohugh we aren't going to actually verify (the default
966
// behavior when -sil-verify-all is disabled).
967
- auto *mod = getParent();
+ auto *mod = &getModule();
968
if (!mod || !mod->getOptions().VerifyAll)
969
return;
970
#endif
0 commit comments