File tree Expand file tree Collapse file tree 3 files changed +94
-80
lines changed Expand file tree Collapse file tree 3 files changed +94
-80
lines changed Original file line number Diff line number Diff line change @@ -190,14 +190,14 @@ void SILGenFunction::emitBackDeploymentThunk(SILDeclRef thunk) {
190
190
191
191
// Generate the thunk prolog by collecting parameters.
192
192
SmallVector<ManagedValue, 4 > params;
193
- SmallVector<SILArgument * , 4 > indirectParams;
193
+ SmallVector<ManagedValue , 4 > indirectParams;
194
194
collectThunkParams (loc, params, &indirectParams);
195
195
196
196
// Build up the list of arguments that we're going to invoke the the real
197
197
// function with.
198
198
SmallVector<SILValue, 8 > paramsForForwarding;
199
199
for (auto indirectParam : indirectParams) {
200
- paramsForForwarding.emplace_back (indirectParam);
200
+ paramsForForwarding.emplace_back (indirectParam. getLValueAddress () );
201
201
}
202
202
203
203
for (auto param : params) {
Original file line number Diff line number Diff line change @@ -2252,7 +2252,7 @@ class LLVM_LIBRARY_VISIBILITY SILGenFunction
2252
2252
// / Used for emitting SILArguments of bare functions, such as thunks.
2253
2253
void collectThunkParams (
2254
2254
SILLocation loc, SmallVectorImpl<ManagedValue> ¶ms,
2255
- SmallVectorImpl<SILArgument * > *indirectResultParams = nullptr );
2255
+ SmallVectorImpl<ManagedValue > *indirectResultParams = nullptr );
2256
2256
2257
2257
// / Build the type of a function transformation thunk.
2258
2258
CanSILFunctionType buildThunkType (CanSILFunctionType &sourceType,
You can’t perform that action at this time.
0 commit comments