mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
ASTMangler: EnumElementDecl could also be a DeclContext with a parameter list
This commit is contained in:
@@ -587,6 +587,8 @@ static unsigned getUnnamedParamIndex(const ParamDecl *D) {
|
||||
|
||||
if (auto AFD = dyn_cast<AbstractFunctionDecl>(D->getDeclContext())) {
|
||||
ParamList = AFD->getParameters();
|
||||
} else if (auto EED = dyn_cast<EnumElementDecl>(D->getDeclContext())) {
|
||||
ParamList = EED->getParameterList();
|
||||
} else {
|
||||
auto ACE = cast<AbstractClosureExpr>(D->getDeclContext());
|
||||
ParamList = ACE->getParameters();
|
||||
|
||||
Reference in New Issue
Block a user