mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
sprinkle llvm_unreachable for covered switches (NFC)
Annotate the covered switches with `llvm_unreachable` to avoid the MSVC warning which does not recognise the covered switches. This allows us to avoid a spew of warnings.
This commit is contained in:
@@ -51,6 +51,7 @@ static StringRef getMathOperatorName(MathOperator op) {
|
||||
case Subtract:
|
||||
return "-";
|
||||
}
|
||||
llvm_unreachable("invalid math operator kind");
|
||||
}
|
||||
|
||||
bool DerivedConformance::canDeriveAdditiveArithmetic(NominalTypeDecl *nominal,
|
||||
|
||||
Reference in New Issue
Block a user