mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Eliminate the Parameter type completely - now ParameterList is just
an overblown array of ParamDecl*'s that also keeps track of parenlocs and has helper methods.
This commit is contained in:
@@ -306,9 +306,8 @@ struct ArgumentInitHelper {
|
||||
}
|
||||
}
|
||||
|
||||
void emitParam(Parameter ¶m) {
|
||||
void emitParam(ParamDecl *PD) {
|
||||
++ArgNo;
|
||||
auto PD = param.decl;
|
||||
if (PD->hasName()) {
|
||||
makeArgumentIntoBinding(PD->getType(), &*f.begin(), PD);
|
||||
return;
|
||||
@@ -349,8 +348,8 @@ static void makeArgument(Type ty, ParamDecl *decl,
|
||||
|
||||
void SILGenFunction::bindParametersForForwarding(const ParameterList *params,
|
||||
SmallVectorImpl<SILValue> ¶meters) {
|
||||
for (auto ¶m : *params) {
|
||||
makeArgument(param.decl->getType(), param.decl, parameters, *this);
|
||||
for (auto param : *params) {
|
||||
makeArgument(param->getType(), param, parameters, *this);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user