Skip to content

Commit 6da591c

Browse files
authored
Merge pull request #26233 from gottesmm/pr-eece236dc9ac458c63475f57f405b074b064e388
Revert "Revert "[ownership] Verify functions before we strip ownershi…
2 parents 8a31ad6 + 834aa2d commit 6da591c

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)