[llvm-commits] [llvm] r170977 - /llvm/trunk/include/llvm/CodeGen/ValueTypes.h
Craig Topper
craig.topper at gmail.com
Fri Dec 21 19:08:37 PST 2012
Author: ctopper
Date: Fri Dec 21 21:08:37 2012
New Revision: 170977
URL: http://llvm.org/viewvc/llvm-project?rev=170977&view=rev
Log:
Add vAny and Metadata to the switch in getSizeInBits for consistency since every other enum was listed.
Modified:
llvm/trunk/include/llvm/CodeGen/ValueTypes.h
Modified: llvm/trunk/include/llvm/CodeGen/ValueTypes.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/ValueTypes.h?rev=170977&r1=170976&r2=170977&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/ValueTypes.h (original)
+++ llvm/trunk/include/llvm/CodeGen/ValueTypes.h Fri Dec 21 21:08:37 2012
@@ -328,7 +328,10 @@
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 @@
case i32 :
case v4i8:
case v2i16:
- case v2f16:
+ case v2f16:
case v1i32: return 32;
case x86mmx:
case f64 :
More information about the llvm-commits
mailing list