File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
lib/SILOptimizer/FunctionSignatureTransforms Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -207,7 +207,6 @@ bool ExistentialSpecializer::canSpecializeExistentialArgsInFunction(
207
207
208
208
// / Determine if this callee function can be specialized or not.
209
209
bool ExistentialSpecializer::canSpecializeCalleeFunction (FullApplySite &Apply) {
210
-
211
210
// / Determine the caller of the apply.
212
211
auto *Callee = Apply.getReferencedFunctionOrNull ();
213
212
if (!Callee)
@@ -221,6 +220,13 @@ bool ExistentialSpecializer::canSpecializeCalleeFunction(FullApplySite &Apply) {
221
220
if (!Callee->isDefinition ())
222
221
return false ;
223
222
223
+ // If the callee has ownership enabled, bail.
224
+ //
225
+ // FIXME: We should be able to handle callees that have ownership, but the
226
+ // pass has not been updated yet.
227
+ if (Callee->hasOwnership ())
228
+ return false ;
229
+
224
230
// / Ignore functions with indirect results.
225
231
if (Callee->getConventions ().hasIndirectSILResults ())
226
232
return false ;
You can’t perform that action at this time.
0 commit comments