Skip to content

Commit e9d827c

Browse files
authored
Merge pull request swiftlang#25703 from gottesmm/pr-9ce7ee5ae4fd57ea34dec6d0684787ff04fcf634
2 parents dd9a9fe + 7bd15bd commit e9d827c

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)