File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -635,7 +635,9 @@ void CopyPropagation::run() {
635635 accessBlockAnalysis->unlockInvalidation ();
636636 if (f->getModule ().getOptions ().VerifySILOwnership ) {
637637 auto *deBlocksAnalysis = getAnalysis<DeadEndBlocksAnalysis>();
638- f->verifyOwnership (deBlocksAnalysis->get (f));
638+ f->verifyOwnership (f->getModule ().getOptions ().OSSAVerifyComplete
639+ ? nullptr
640+ : deBlocksAnalysis->get (f));
639641 }
640642 }
641643}
Original file line number Diff line number Diff line change 2323#include " swift/SIL/BasicBlockUtils.h"
2424#include " swift/SIL/SILFunction.h"
2525#include " swift/SIL/SILInstruction.h"
26+ #include " swift/SILOptimizer/Analysis/DeadEndBlocksAnalysis.h"
2627#include " swift/SILOptimizer/PassManager/Passes.h"
2728#include " swift/SILOptimizer/PassManager/Transforms.h"
2829
@@ -37,8 +38,10 @@ namespace {
3738class OwnershipVerifierTextualErrorDumper : public SILFunctionTransform {
3839 void run () override {
3940 SILFunction *f = getFunction ();
40- DeadEndBlocks deadEndBlocks (f);
41- f->verifyOwnership (&deadEndBlocks);
41+ auto *deBlocksAnalysis = getAnalysis<DeadEndBlocksAnalysis>();
42+ f->verifyOwnership (f->getModule ().getOptions ().OSSAVerifyComplete
43+ ? nullptr
44+ : deBlocksAnalysis->get (f));
4245 }
4346};
4447
You can’t perform that action at this time.
0 commit comments