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 @@ -579,10 +579,6 @@ bool BridgedProperty::matchMethodCall(SILBasicBlock::iterator It,
579
579
ObjCMethod->getType ().castTo <SILFunctionType>()->hasOpenedExistential ())
580
580
return false ;
581
581
582
- // Don't outline in the outlined function.
583
- if (ObjCMethod->getFunction ()->getName ().equals (getOutlinedFunctionName ()))
584
- return false ;
585
-
586
582
// %34 = apply %33(%31) : $@convention(objc_method) (UITextField) -> @autoreleased Optional<NSString>
587
583
ADVANCE_ITERATOR_OR_RETURN_FALSE (It);
588
584
PropApply = dyn_cast<ApplyInst>(It);
@@ -629,6 +625,10 @@ bool BridgedProperty::matchMethodCall(SILBasicBlock::iterator It,
629
625
assert (Release == &*It);
630
626
}
631
627
628
+ // Don't outline in the outlined function.
629
+ if (ObjCMethod->getFunction ()->getName ().equals (getOutlinedFunctionName ()))
630
+ return false ;
631
+
632
632
// switch_enum %34 : $Optional<NSString>, case #Optional.some!enumelt: bb8, case #Optional.none!enumelt: bb9
633
633
ADVANCE_ITERATOR_OR_RETURN_FALSE (It);
634
634
return matchSwitch (switchInfo, &*It, PropApply);
You can’t perform that action at this time.
0 commit comments