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() {
635
635
accessBlockAnalysis->unlockInvalidation ();
636
636
if (f->getModule ().getOptions ().VerifySILOwnership ) {
637
637
auto *deBlocksAnalysis = getAnalysis<DeadEndBlocksAnalysis>();
638
- f->verifyOwnership (deBlocksAnalysis->get (f));
638
+ f->verifyOwnership (f->getModule ().getOptions ().OSSAVerifyComplete
639
+ ? nullptr
640
+ : deBlocksAnalysis->get (f));
639
641
}
640
642
}
641
643
}
Original file line number Diff line number Diff line change 23
23
#include " swift/SIL/BasicBlockUtils.h"
24
24
#include " swift/SIL/SILFunction.h"
25
25
#include " swift/SIL/SILInstruction.h"
26
+ #include " swift/SILOptimizer/Analysis/DeadEndBlocksAnalysis.h"
26
27
#include " swift/SILOptimizer/PassManager/Passes.h"
27
28
#include " swift/SILOptimizer/PassManager/Transforms.h"
28
29
@@ -37,8 +38,10 @@ namespace {
37
38
class OwnershipVerifierTextualErrorDumper : public SILFunctionTransform {
38
39
void run () override {
39
40
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));
42
45
}
43
46
};
44
47
You can’t perform that action at this time.
0 commit comments