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:
Saleem Abdulrasool
2020-05-07 11:04:17 -07:00
parent fe9751f988
commit 09975d1253
27 changed files with 40 additions and 0 deletions

View File

@@ -51,6 +51,7 @@ static StringRef getMathOperatorName(MathOperator op) {
case Subtract:
return "-";
}
llvm_unreachable("invalid math operator kind");
}
bool DerivedConformance::canDeriveAdditiveArithmetic(NominalTypeDecl *nominal,