Clone arguments with the implicit bit set when generating implicit accessors,

fixing a recently xfailed test.
This commit is contained in:
Chris Lattner
2016-01-02 19:42:05 -08:00
parent 013d08d439
commit ad82cbd5a9
2 changed files with 2 additions and 2 deletions

View File

@@ -100,7 +100,8 @@ buildIndexForwardingParamList(AbstractStorageDecl *storage,
return ParameterList::create(context, prefix);
// Clone the parameter list over for a new decl, so we get new ParamDecls.
auto indices = subscript->getIndices()->clone(context);
auto indices = subscript->getIndices()->clone(context,
ParameterList::Implicit);
if (prefix.empty())
return indices;