Skip to content

Commit 6371d8d

Browse files
committed
[AST] NFC: Use exhaustive switch in Decl::isBeingValidated()
1 parent 5828a98 commit 6371d8d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

include/swift/AST/Decl.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -819,9 +819,11 @@ class alignas(1 << DeclAlignInBits) Decl {
819819
case ValidationState::Unchecked:
820820
case ValidationState::Checked:
821821
return false;
822-
default:
822+
case ValidationState::Checking:
823+
case ValidationState::CheckingWithValidSignature:
823824
return true;
824825
}
826+
llvm_unreachable("Unknown ValidationState");
825827
}
826828

827829
/// Update the validation state for the declaration to allow access to the

0 commit comments

Comments
 (0)