Skip to content

Commit c286170

Browse files
committed
SILGen: Use the right resilience expansion
1 parent 82d4386 commit c286170

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/SILGen/SILGenPattern.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1759,9 +1759,8 @@ void PatternMatchEmission::emitEnumElementDispatchWithOwnership(
17591759
enumDecl = SGF.getASTContext().getOptionalDecl();
17601760
}
17611761

1762-
// FIXME: Get expansion from SILFunction
17631762
if (!enumDecl->isResilient(SGF.SGM.M.getSwiftModule(),
1764-
ResilienceExpansion::Maximal)) {
1763+
SGF.F.getResilienceExpansion())) {
17651764
exhaustive = true;
17661765

17671766
for (auto elt : enumDecl->getAllElements()) {
@@ -1988,7 +1987,6 @@ void PatternMatchEmission::emitEnumElementDispatch(
19881987
enumDecl = SGF.getASTContext().getOptionalDecl();
19891988
}
19901989

1991-
// FIXME: Get expansion from SILFunction
19921990
if (!enumDecl->isResilient(SGF.SGM.M.getSwiftModule(),
19931991
SGF.F.getResilienceExpansion())) {
19941992
exhaustive = true;

0 commit comments

Comments
 (0)