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:
334a130
)
[DataLayout] Add llvm_unreachable to the default of a nested switch statement that...
author
Craig Topper
<craig.topper@gmail.com>
Mon, 22 May 2017 19:28:36 +0000
(19:28 +0000)
committer
Craig Topper
<craig.topper@gmail.com>
Mon, 22 May 2017 19:28:36 +0000
(19:28 +0000)
llvm-svn: 303571
llvm/lib/IR/DataLayout.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/IR/DataLayout.cpp
b/llvm/lib/IR/DataLayout.cpp
index
c117d29
..
d5e2964
100644
(file)
--- a/
llvm/lib/IR/DataLayout.cpp
+++ b/
llvm/lib/IR/DataLayout.cpp
@@
-307,7
+307,7
@@
void DataLayout::parseSpecifier(StringRef Desc) {
case 'a': {
AlignTypeEnum AlignType;
switch (Specifier) {
- default:
+ default:
llvm_unreachable("Unexpected specifier!");
case 'i': AlignType = INTEGER_ALIGN; break;
case 'v': AlignType = VECTOR_ALIGN; break;
case 'f': AlignType = FLOAT_ALIGN; break;