diff options
| author | Chad Rosier <mcrosier@apple.com> | 2013-06-24 17:29:51 +0000 |
|---|---|---|
| committer | Chad Rosier <mcrosier@apple.com> | 2013-06-24 17:29:51 +0000 |
| commit | ae9ce8b68881a19d465e939cb53db84cf63f94f7 (patch) | |
| tree | 245ac0c0bb3167a0c8a145c9cdbca6f952b20289 | |
| parent | 8a27ba8051780a5689040d639a771d55596a1a61 (diff) | |
| download | bcm5719-llvm-ae9ce8b68881a19d465e939cb53db84cf63f94f7.tar.gz bcm5719-llvm-ae9ce8b68881a19d465e939cb53db84cf63f94f7.zip | |
Improve diagnostics when getSizeInBits is called on the Other type.
llvm-svn: 184760
| -rw-r--r-- | llvm/include/llvm/CodeGen/ValueTypes.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/include/llvm/CodeGen/ValueTypes.h b/llvm/include/llvm/CodeGen/ValueTypes.h index ec48b67b993..b7b3d73b307 100644 --- a/llvm/include/llvm/CodeGen/ValueTypes.h +++ b/llvm/include/llvm/CodeGen/ValueTypes.h @@ -343,6 +343,10 @@ namespace llvm { unsigned getSizeInBits() const { switch (SimpleTy) { + default: + llvm_unreachable("getSizeInBits called on extended MVT."); + case Other: + llvm_unreachable("Value type is non-standard value, Other."); case iPTR: llvm_unreachable("Value type size is target-dependent. Ask TLI."); case iPTRAny: @@ -352,8 +356,6 @@ namespace llvm { llvm_unreachable("Value type is overloaded."); case Metadata: llvm_unreachable("Value type is metadata."); - default: - llvm_unreachable("getSizeInBits called on extended MVT."); case i1 : return 1; case v2i1: return 2; case v4i1: return 4; |

