Skip to content

Commit b41e268

Browse files
committed
CopyPropagation: respect -Xfrontend -disable-sil-ownership-verifier
1 parent 76139d0 commit b41e268

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/SILOptimizer/Transforms/CopyPropagation.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,9 @@ void CopyPropagation::run() {
131131
accessBlockAnalysis->lockInvalidation();
132132
invalidateAnalysis(SILAnalysis::InvalidationKind::Instructions);
133133
accessBlockAnalysis->unlockInvalidation();
134-
f->verifyOwnership(deBlocksAnalysis->get(f));
134+
if (f->getModule().getOptions().VerifySILOwnership) {
135+
f->verifyOwnership(deBlocksAnalysis->get(f));
136+
}
135137
}
136138
}
137139

0 commit comments

Comments
 (0)