Skip to content

Commit e625d29

Browse files
committed
Merge remote-tracking branch 'origin/master' into master-next
2 parents 15dd380 + 6da591c commit e625d29

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)