AsmWriterEmitter: OpInfo2 should be unsigned 16-bit.
Fix an issue in r163814.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163837 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/utils/TableGen/AsmWriterEmitter.cpp b/utils/TableGen/AsmWriterEmitter.cpp
index 56b2ef8..7f9d406 100644
--- a/utils/TableGen/AsmWriterEmitter.cpp
+++ b/utils/TableGen/AsmWriterEmitter.cpp
@@ -436,7 +436,7 @@
if (BitsLeft < 16) {
// Add a second OpInfo table only when it is necessary.
- O<<" static const short OpInfo2[] = {\n";
+ O<<" static const uint16_t OpInfo2[] = {\n";
for (unsigned i = 0, e = NumberedInstructions.size(); i != e; ++i) {
O << " " << OpcodeInfo[i].second << "U,\t// "
<< NumberedInstructions[i]->TheDef->getName() << "\n";