commit | 9e6dc8b9e70c98fc269303a5a94f0476942fb35a | [log] [tgz] |
---|---|---|
author | Craig Topper <craig.topper@gmail.com> | Tue Sep 11 04:19:21 2012 +0000 |
committer | Craig Topper <craig.topper@gmail.com> | Tue Sep 11 04:19:21 2012 +0000 |
tree | 97a243479cfd982f200e903231c6c8c88d8e6ac4 | |
parent | 0dd9b61f9f0dad1b1b9c4e5a54fe826e18fae787 [diff] [blame] |
Change unsigned to a uint16_t in static disassembler tables to reduce the table size. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163594 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/utils/TableGen/X86DisassemblerTables.cpp b/utils/TableGen/X86DisassemblerTables.cpp index f3bd373..8526621 100644 --- a/utils/TableGen/X86DisassemblerTables.cpp +++ b/utils/TableGen/X86DisassemblerTables.cpp
@@ -366,6 +366,10 @@ break; } + // We assume that the index can fit into uint16_t. + assert(sEntryNumber < 65536U && + "Index into ModRMDecision is too large for uint16_t!"); + ++sTableNumber; }