Skip to content

Commit 98dbca5

Browse files
committed
SILGen: Tiny cleanup
1 parent e27e75f commit 98dbca5

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

lib/SILGen/SILGenProlog.cpp

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1072,14 +1072,8 @@ static void emitCaptureArguments(SILGenFunction &SGF,
10721072
isPack = true;
10731073
}
10741074

1075-
// Local function to get the captured variable type within the capturing
1076-
// context.
1077-
auto getVarTypeInCaptureContext = [&]() -> Type {
1078-
return SGF.F.mapTypeIntoContext(interfaceType);
1079-
};
1080-
1081-
auto type = getVarTypeInCaptureContext();
1082-
auto &lowering = SGF.getTypeLowering(getVarTypeInCaptureContext());
1075+
auto type = SGF.F.mapTypeIntoContext(interfaceType);
1076+
auto &lowering = SGF.getTypeLowering(type);
10831077
SILType ty = lowering.getLoweredType();
10841078

10851079
SILValue arg;

0 commit comments

Comments
 (0)