We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6cb4568 commit cefc925Copy full SHA for cefc925
lib/SILOptimizer/SILCombiner/SILCombinerApplyVisitors.cpp
@@ -512,6 +512,10 @@ bool SILCombiner::tryOptimizeKeypath(ApplyInst *AI) {
512
/// %addr = struct_element_addr/ref_element_addr %root_object
513
/// // use %inout_addr
514
bool SILCombiner::tryOptimizeInoutKeypath(BeginApplyInst *AI) {
515
+ // Disable in OSSA because KeyPathProjector is not fully ported
516
+ if (AI->getFunction()->hasOwnership())
517
+ return false;
518
+
519
SILFunction *callee = AI->getReferencedFunctionOrNull();
520
if (!callee)
521
return false;
0 commit comments