Skip to content

Commit 32f9e8d

Browse files
committed
[NFC] IRGen: Delete dead param.
1 parent 35f79e4 commit 32f9e8d

File tree

4 files changed

+9
-13
lines changed

4 files changed

+9
-13
lines changed

lib/IRGen/GenCall.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2514,9 +2514,8 @@ llvm::Value *emitIndirectAsyncFunctionPointer(IRGenFunction &IGF,
25142514
}
25152515

25162516
std::pair<llvm::Value *, llvm::Value *> irgen::getAsyncFunctionAndSize(
2517-
IRGenFunction &IGF, SILFunctionTypeRepresentation representation,
2518-
FunctionPointer functionPointer, llvm::Value *thickContext,
2519-
std::pair<bool, bool> values) {
2517+
IRGenFunction &IGF, FunctionPointer functionPointer,
2518+
llvm::Value *thickContext, std::pair<bool, bool> values) {
25202519
assert(values.first || values.second);
25212520
assert(functionPointer.getKind() != FunctionPointer::Kind::Function);
25222521

@@ -2960,8 +2959,7 @@ class AsyncCallEmission final : public CallEmission {
29602959

29612960
llvm::Value *dynamicContextSize32;
29622961
std::tie(calleeFunction, dynamicContextSize32) = getAsyncFunctionAndSize(
2963-
IGF, CurCallee.getOrigFunctionType()->getRepresentation(),
2964-
CurCallee.getFunctionPointer(), thickContext);
2962+
IGF, CurCallee.getFunctionPointer(), thickContext);
29652963
auto *dynamicContextSize =
29662964
IGF.Builder.CreateZExt(dynamicContextSize32, IGF.IGM.SizeTy);
29672965
if (auto staticSize = dyn_cast<llvm::ConstantInt>(dynamicContextSize)) {

lib/IRGen/GenCall.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,10 +139,10 @@ namespace irgen {
139139
/// be returned for it.
140140
///
141141
/// \return {function, size}
142-
std::pair<llvm::Value *, llvm::Value *> getAsyncFunctionAndSize(
143-
IRGenFunction &IGF, SILFunctionTypeRepresentation representation,
144-
FunctionPointer functionPointer, llvm::Value *thickContext,
145-
std::pair<bool, bool> values = {true, true});
142+
std::pair<llvm::Value *, llvm::Value *>
143+
getAsyncFunctionAndSize(IRGenFunction &IGF, FunctionPointer functionPointer,
144+
llvm::Value *thickContext,
145+
std::pair<bool, bool> values = {true, true});
146146
llvm::CallingConv::ID expandCallingConv(IRGenModule &IGM,
147147
SILFunctionTypeRepresentation convention,
148148
bool isAsync);

lib/IRGen/GenDecl.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3047,8 +3047,7 @@ void IRGenModule::createReplaceableProlog(IRGenFunction &IGF, SILFunction *f) {
30473047
llvm::Value *dynamicContextSize32;
30483048
llvm::Value *calleeFunction;
30493049
std::tie(calleeFunction, dynamicContextSize32) = getAsyncFunctionAndSize(
3050-
IGF, silFunctionType->getRepresentation(), asyncFnPtr, nullptr,
3051-
std::make_pair(false, true));
3050+
IGF, asyncFnPtr, nullptr, std::make_pair(false, true));
30523051
auto *dynamicContextSize =
30533052
Builder.CreateZExt(dynamicContextSize32, IGM.SizeTy);
30543053
auto calleeContextBuffer = emitAllocAsyncContext(IGF, dynamicContextSize);

lib/IRGen/GenFunc.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1301,8 +1301,7 @@ class AsyncPartialApplicationForwarderEmission
13011301
void mapAsyncParameters(FunctionPointer fnPtr) override {
13021302
llvm::Value *dynamicContextSize32;
13031303
std::tie(calleeFunction, dynamicContextSize32) = getAsyncFunctionAndSize(
1304-
subIGF, origType->getRepresentation(), fnPtr, nullptr,
1305-
std::make_pair(true, true));
1304+
subIGF, fnPtr, nullptr, std::make_pair(true, true));
13061305
auto *dynamicContextSize =
13071306
subIGF.Builder.CreateZExt(dynamicContextSize32, subIGF.IGM.SizeTy);
13081307
calleeContextBuffer =

0 commit comments

Comments
 (0)