File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
lib/SILOptimizer/SILCombiner Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -940,11 +940,12 @@ SILInstruction *SILCombiner::createApplyWithConcreteType(
940
940
bool madeUpdate = false ;
941
941
for (unsigned index = 0 ; index < conv.getNumSILArguments (); ++index) {
942
942
canUpdate &= conv.getSILArgumentType (index) == NewArgs[index]->getType ();
943
- madeUpdate |= NewArgs[index]->getType () != Apply.getArgument (index)->getType ();
943
+ madeUpdate |=
944
+ NewArgs[index]->getType () != Apply.getArgument (index)->getType ();
944
945
}
945
946
return std::make_tuple (canUpdate, madeUpdate);
946
947
}();
947
-
948
+
948
949
if (!canUpdateArgs || !madeUpdate) {
949
950
// Remove any new instructions created while attempting to optimize this
950
951
// apply. Since the apply was never rewritten, if they aren't removed here,
You can’t perform that action at this time.
0 commit comments