Skip to content

Commit 834aa2d

Browse files
committed
Revert "Revert "[ownership] Verify functions before we strip ownership.""
This reverts commit f9c586f.
1 parent da61cc8 commit 834aa2d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/SILOptimizer/Transforms/OwnershipModelEliminator.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,9 @@ struct OwnershipModelEliminator : SILModuleTransform {
382382
if (SkipTransparent && F.isTransparent())
383383
continue;
384384

385+
// Verify here to make sure ownership is correct before we strip.
386+
F.verify();
387+
385388
if (stripOwnership(F)) {
386389
auto InvalidKind =
387390
SILAnalysis::InvalidationKind::BranchesAndInstructions;

0 commit comments

Comments
 (0)