File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
lib/SILOptimizer/Transforms Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -151,6 +151,10 @@ namespace {
151
151
struct OwnershipModelEliminator : SILFunctionTransform {
152
152
void run () override {
153
153
SILFunction *F = getFunction ();
154
+
155
+ // Set F to have unqualified ownership.
156
+ F->setUnqualifiedOwnership ();
157
+
154
158
bool MadeChange = false ;
155
159
SILBuilder B (*F);
156
160
OwnershipModelEliminatorVisitor Visitor (B);
@@ -171,10 +175,6 @@ struct OwnershipModelEliminator : SILFunctionTransform {
171
175
// that analysis.
172
176
invalidateAnalysis (SILAnalysis::InvalidationKind::Instructions);
173
177
}
174
-
175
- // Now that we have lowered to unqualified ownership, set the unqualified
176
- // ownership flag on the function.
177
- F->setUnqualifiedOwnership ();
178
178
}
179
179
180
180
StringRef getName () override { return " Ownership Model Eliminator" ; }
You can’t perform that action at this time.
0 commit comments