Skip to content

Commit adfd189

Browse files
authored
Merge pull request #21713 from gottesmm/pr-1e14bc2c250f8478fa78a50dbdbfb90046d18492
2 parents 5636cd3 + 5d157c5 commit adfd189

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/SILOptimizer/Transforms/OwnershipModelEliminator.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,10 @@ struct OwnershipModelEliminator : SILModuleTransform {
297297
if (F.wasDeserializedCanonical())
298298
continue;
299299

300+
// If F does not have ownership, skip it. We have no further work to do.
301+
if (!F.hasOwnership())
302+
continue;
303+
300304
// Set F to have unqualified ownership.
301305
F.setOwnershipEliminated();
302306

0 commit comments

Comments
 (0)