Skip to content

Commit fa45f94

Browse files
authored
Merge pull request #22505 from gottesmm/pr-a9215f20d50e61020e1e5768093a4c344c47388b
2 parents c7f70fc + 5d94489 commit fa45f94

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/SILOptimizer/Transforms/SILCodeMotion.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1774,6 +1774,10 @@ class SILCodeMotion : public SILFunctionTransform {
17741774
/// The entry point to the transformation.
17751775
void run() override {
17761776
auto *F = getFunction();
1777+
// Skip functions with ownership for now.
1778+
if (F->hasOwnership())
1779+
return;
1780+
17771781
auto *AA = getAnalysis<AliasAnalysis>();
17781782
auto *PO = getAnalysis<PostOrderAnalysis>()->get(F);
17791783
auto *RCIA = getAnalysis<RCIdentityAnalysis>()->get(getFunction());

0 commit comments

Comments
 (0)