Skip to content

Commit 5c9b8bf

Browse files
committed
[GenericSignature] Correct the order of arguments to GenericTypeParamType::get
when creating the generic signature for an opened pack element.
1 parent dc35db6 commit 5c9b8bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/AST/ASTContext.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5602,8 +5602,8 @@ ASTContext::getOpenedElementSignature(CanGenericSignature baseGenericSig) {
56025602

56035603
auto eraseParameterPack = [&](GenericTypeParamType *paramType) {
56045604
return GenericTypeParamType::get(
5605-
paramType->getDepth(), paramType->getIndex(),
5606-
/*isParameterPack=*/false, *this);
5605+
/*isParameterPack=*/false, paramType->getDepth(),
5606+
paramType->getIndex(), *this);
56075607
};
56085608

56095609
for (auto paramType : baseGenericSig.getGenericParams()) {

0 commit comments

Comments
 (0)