From bf50d07625495f9185d3eba7be9e35df3e30ba65 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Sat, 22 Dec 2012 03:08:37 +0000 Subject: [PATCH] Add vAny and Metadata to the switch in getSizeInBits for consistency since every other enum was listed. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@170977 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/CodeGen/ValueTypes.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/llvm/CodeGen/ValueTypes.h b/include/llvm/CodeGen/ValueTypes.h index 931a47ee023..ed3acdc0d7b 100644 --- a/include/llvm/CodeGen/ValueTypes.h +++ b/include/llvm/CodeGen/ValueTypes.h @@ -328,7 +328,10 @@ namespace llvm { case iPTRAny: case iAny: case fAny: + case vAny: 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; @@ -345,7 +348,7 @@ namespace llvm { case i32 : case v4i8: case v2i16: - case v2f16: + case v2f16: case v1i32: return 32; case x86mmx: case f64 :