Fix -Wimplicit-fallthrough warning in LLVM_ENABLE_ASSERTIONS=Off builds

llvm-svn: 345951
This commit is contained in:
Fangrui Song 2018-11-02 04:17:17 +00:00
parent fbd5039b7e
commit e446f04cb1
1 changed files with 2 additions and 2 deletions

View File

@ -134,7 +134,7 @@ ConversionKind ClassifyFormatString(StringRef Fmt, const LangOptions &LO,
StringRef ClassifyConversionType(ConversionKind K) {
switch (K) {
case ConversionKind::None:
assert(false && "Unexpected conversion kind");
llvm_unreachable("Unexpected conversion kind");
case ConversionKind::ToInt:
case ConversionKind::ToLongInt:
case ConversionKind::ToIntMax:
@ -154,7 +154,7 @@ StringRef ClassifyConversionType(ConversionKind K) {
StringRef ClassifyReplacement(ConversionKind K) {
switch (K) {
case ConversionKind::None:
assert(false && "Unexpected conversion kind");
llvm_unreachable("Unexpected conversion kind");
case ConversionKind::ToInt:
return "strtol";
case ConversionKind::ToUInt: