mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-09 13:21:30 +00:00
Improve diagnostics when getSizeInBits is called on the Other type.
llvm-svn: 184760
This commit is contained in:
parent
bc7599b681
commit
1f622b5f73
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user