File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -1759,9 +1759,8 @@ void PatternMatchEmission::emitEnumElementDispatchWithOwnership(
1759
1759
enumDecl = SGF.getASTContext ().getOptionalDecl ();
1760
1760
}
1761
1761
1762
- // FIXME: Get expansion from SILFunction
1763
1762
if (!enumDecl->isResilient (SGF.SGM .M .getSwiftModule (),
1764
- ResilienceExpansion::Maximal )) {
1763
+ SGF. F . getResilienceExpansion () )) {
1765
1764
exhaustive = true ;
1766
1765
1767
1766
for (auto elt : enumDecl->getAllElements ()) {
@@ -1988,7 +1987,6 @@ void PatternMatchEmission::emitEnumElementDispatch(
1988
1987
enumDecl = SGF.getASTContext ().getOptionalDecl ();
1989
1988
}
1990
1989
1991
- // FIXME: Get expansion from SILFunction
1992
1990
if (!enumDecl->isResilient (SGF.SGM .M .getSwiftModule (),
1993
1991
SGF.F .getResilienceExpansion ())) {
1994
1992
exhaustive = true ;
You can’t perform that action at this time.
0 commit comments