diff options
author | Craig Topper <craig.topper@gmail.com> | 2017-05-22 19:28:36 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2017-05-22 19:28:36 +0000 |
commit | 64a65ec4fd5a37505bd19e276d0c38e45f1304c8 (patch) | |
tree | 9735bc6e4d64ee34d3bafa38f8215452daf01db5 /llvm/lib/IR/DataLayout.cpp | |
parent | 334a130a6f95d37b0792320cbfdc3386523777a1 (diff) | |
download | bcm5719-llvm-64a65ec4fd5a37505bd19e276d0c38e45f1304c8.tar.gz bcm5719-llvm-64a65ec4fd5a37505bd19e276d0c38e45f1304c8.zip |
[DataLayout] Add llvm_unreachable to the default of a nested switch statement that covers all values given to it by the outer switch. NFC
llvm-svn: 303571
Diffstat (limited to 'llvm/lib/IR/DataLayout.cpp')
-rw-r--r-- | llvm/lib/IR/DataLayout.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/IR/DataLayout.cpp b/llvm/lib/IR/DataLayout.cpp index c117d29b7f6..d5e29649a23 100644 --- 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; |