Skip to content

Commit a0fb139

Browse files
committed
Format
1 parent 4d2c342 commit a0fb139

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

lib/SILOptimizer/SILCombiner/SILCombinerApplyVisitors.cpp

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -792,7 +792,7 @@ struct ConcreteArgumentCopy {
792792
&& "A mutated opened existential value can't be replaced");
793793

794794
if (!paramInfo.isConsumed())
795-
return None;
795+
return None;
796796

797797
SILValue origArg = apply.getArgument(argIdx);
798798
// FIXME_opaque: With SIL opaque values, a formally indirect argument may be
@@ -924,8 +924,14 @@ SILInstruction *SILCombiner::createApplyWithConcreteType(
924924
}
925925

926926
bool canUpdateArgs = [&]() {
927-
auto substTy = Apply.getCallee()->getType().substGenericArgs(Apply.getModule(), NewCallSubs, Apply.getFunction()->getTypeExpansionContext()).getAs<SILFunctionType>();
928-
SILFunctionConventions conv(substTy, SILModuleConventions(Apply.getModule()));
927+
auto substTy =
928+
Apply.getCallee()
929+
->getType()
930+
.substGenericArgs(Apply.getModule(), NewCallSubs,
931+
Apply.getFunction()->getTypeExpansionContext())
932+
.getAs<SILFunctionType>();
933+
SILFunctionConventions conv(substTy,
934+
SILModuleConventions(Apply.getModule()));
929935
bool canUpdate = true;
930936
for (unsigned index = 0; index < conv.getNumSILArguments(); ++index) {
931937
canUpdate &= conv.getSILArgumentType(index) == NewArgs[index]->getType();

0 commit comments

Comments
 (0)