Fix a pair of Wfallthrough warnings in ScanfFormatString.

Change-Id: Ia73a34fdd93fc974224583505f9e6432493cb0da
llvm-svn: 350941
This commit is contained in:
Erich Keane 2019-01-11 18:01:40 +00:00
parent cb09a6f20c
commit 473cfda1f4
1 changed files with 2 additions and 0 deletions

View File

@ -264,6 +264,7 @@ ArgType ScanfSpecifier::getArgType(ASTContext &Ctx) const {
case LengthModifier::AsWide:
return ArgType::Invalid();
}
llvm_unreachable("Unsupported LenghtModifier Type");
// Unsigned int.
case ConversionSpecifier::oArg:
@ -303,6 +304,7 @@ ArgType ScanfSpecifier::getArgType(ASTContext &Ctx) const {
case LengthModifier::AsWide:
return ArgType::Invalid();
}
llvm_unreachable("Unsupported LenghtModifier Type");
// Float.
case ConversionSpecifier::aArg: