Skip to content

Commit baecc9b

Browse files
committed
[NFC] IRGen: Delete another dead param.
1 parent 37cc149 commit baecc9b

File tree

4 files changed

+10
-11
lines changed

4 files changed

+10
-11
lines changed

lib/IRGen/GenCall.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2513,9 +2513,10 @@ llvm::Value *emitIndirectAsyncFunctionPointer(IRGenFunction &IGF,
25132513
}
25142514
}
25152515

2516-
std::pair<llvm::Value *, llvm::Value *> irgen::getAsyncFunctionAndSize(
2517-
IRGenFunction &IGF, FunctionPointer functionPointer,
2518-
llvm::Value *thickContext, std::pair<bool, bool> values) {
2516+
std::pair<llvm::Value *, llvm::Value *>
2517+
irgen::getAsyncFunctionAndSize(IRGenFunction &IGF,
2518+
FunctionPointer functionPointer,
2519+
std::pair<bool, bool> values) {
25192520
assert(values.first || values.second);
25202521
assert(functionPointer.getKind() != FunctionPointer::Kind::Function);
25212522

@@ -2958,8 +2959,8 @@ class AsyncCallEmission final : public CallEmission {
29582959
// Allocate space for the async context.
29592960

29602961
llvm::Value *dynamicContextSize32;
2961-
std::tie(calleeFunction, dynamicContextSize32) = getAsyncFunctionAndSize(
2962-
IGF, CurCallee.getFunctionPointer(), thickContext);
2962+
std::tie(calleeFunction, dynamicContextSize32) =
2963+
getAsyncFunctionAndSize(IGF, CurCallee.getFunctionPointer());
29632964
auto *dynamicContextSize =
29642965
IGF.Builder.CreateZExt(dynamicContextSize32, IGF.IGM.SizeTy);
29652966
if (auto staticSize = dyn_cast<llvm::ConstantInt>(dynamicContextSize)) {
@@ -2983,7 +2984,6 @@ class AsyncCallEmission final : public CallEmission {
29832984
super::end();
29842985
}
29852986
void setFromCallee() override {
2986-
thickContext = nullptr; // TODO: this should go
29872987

29882988
super::setFromCallee();
29892989

lib/IRGen/GenCall.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,6 @@ namespace irgen {
141141
/// \return {function, size}
142142
std::pair<llvm::Value *, llvm::Value *>
143143
getAsyncFunctionAndSize(IRGenFunction &IGF, FunctionPointer functionPointer,
144-
llvm::Value *thickContext,
145144
std::pair<bool, bool> values = {true, true});
146145
llvm::CallingConv::ID expandCallingConv(IRGenModule &IGM,
147146
SILFunctionTypeRepresentation convention,

lib/IRGen/GenDecl.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3046,8 +3046,8 @@ void IRGenModule::createReplaceableProlog(IRGenFunction &IGF, SILFunction *f) {
30463046
f->getForwardingSubstitutionMap());
30473047
llvm::Value *dynamicContextSize32;
30483048
llvm::Value *calleeFunction;
3049-
std::tie(calleeFunction, dynamicContextSize32) = getAsyncFunctionAndSize(
3050-
IGF, asyncFnPtr, nullptr, std::make_pair(false, true));
3049+
std::tie(calleeFunction, dynamicContextSize32) =
3050+
getAsyncFunctionAndSize(IGF, asyncFnPtr, std::make_pair(false, true));
30513051
auto *dynamicContextSize =
30523052
Builder.CreateZExt(dynamicContextSize32, IGM.SizeTy);
30533053
auto calleeContextBuffer = emitAllocAsyncContext(IGF, dynamicContextSize);

lib/IRGen/GenFunc.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1300,8 +1300,8 @@ class AsyncPartialApplicationForwarderEmission
13001300
}
13011301
void mapAsyncParameters(FunctionPointer fnPtr) override {
13021302
llvm::Value *dynamicContextSize32;
1303-
std::tie(calleeFunction, dynamicContextSize32) = getAsyncFunctionAndSize(
1304-
subIGF, fnPtr, nullptr, std::make_pair(true, true));
1303+
std::tie(calleeFunction, dynamicContextSize32) =
1304+
getAsyncFunctionAndSize(subIGF, fnPtr, std::make_pair(true, true));
13051305
auto *dynamicContextSize =
13061306
subIGF.Builder.CreateZExt(dynamicContextSize32, subIGF.IGM.SizeTy);
13071307
calleeContextBuffer =

0 commit comments

Comments
 (0)