Fix warning

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5109 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2002-12-20 04:13:28 +00:00
parent 45a4399f88
commit 6eaa46956a

View File

@ -14,12 +14,12 @@
unsigned getIdx(unsigned dataSize) {
switch (dataSize) {
default: assert(0 && "Invalid data size!");
case 1: return 0;
case 2: return 1;
case 4: return 2;
// FIXME: longs handled as ints
case 8: return 2;
default: assert(0 && "Invalid data size!");
}
}