projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb09a6f
)
Fix a pair of Wfallthrough warnings in ScanfFormatString.
author
Erich Keane
<erich.keane@intel.com>
Fri, 11 Jan 2019 18:01:40 +0000
(18:01 +0000)
committer
Erich Keane
<erich.keane@intel.com>
Fri, 11 Jan 2019 18:01:40 +0000
(18:01 +0000)
Change-Id: Ia73a34fdd93fc974224583505f9e6432493cb0da
llvm-svn: 350941
clang/lib/AST/ScanfFormatString.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/AST/ScanfFormatString.cpp
b/clang/lib/AST/ScanfFormatString.cpp
index
bda97c5
..
08ba7a7
100644
(file)
--- a/
clang/lib/AST/ScanfFormatString.cpp
+++ b/
clang/lib/AST/ScanfFormatString.cpp
@@
-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: