Augment GenericTypeParamDecl with bits indicating they came from opaque types

This commit is contained in:
Doug Gregor
2022-01-25 13:10:42 -08:00
parent 7dc36c3092
commit 0416ec708b
12 changed files with 122 additions and 38 deletions

View File

@@ -468,9 +468,10 @@ computeDesignatedInitOverrideSignature(ASTContext &ctx,
depth = genericSig.getGenericParams().back()->getDepth() + 1;
for (auto *param : genericParams->getParams()) {
auto *newParam = new (ctx) GenericTypeParamDecl(
auto *newParam = GenericTypeParamDecl::create(
classDecl, param->getName(), SourceLoc(), param->isTypeSequence(),
depth, param->getIndex());
depth, param->getIndex(), param->isOpaqueType(),
/*opaqueTypeRepr=*/nullptr);
newParams.push_back(newParam);
}