mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-19 04:29:21 +00:00
Fix warning
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5109 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
45a4399f88
commit
6eaa46956a
@ -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!");
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user