[DataLayout] Add llvm_unreachable to the default of a nested switch statement that...
authorCraig Topper <craig.topper@gmail.com>
Mon, 22 May 2017 19:28:36 +0000 (19:28 +0000)
committerCraig Topper <craig.topper@gmail.com>
Mon, 22 May 2017 19:28:36 +0000 (19:28 +0000)
llvm-svn: 303571

llvm/lib/IR/DataLayout.cpp

index c117d29..d5e2964 100644 (file)
@@ -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;