AsmWriterEmitter: OpInfo2 should be unsigned 16-bit.
authorManman Ren <mren@apple.com>
Thu, 13 Sep 2012 20:47:48 +0000 (20:47 +0000)
committerManman Ren <mren@apple.com>
Thu, 13 Sep 2012 20:47:48 +0000 (20:47 +0000)
Fix an issue in r163814.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163837 91177308-0d34-0410-b5e6-96231b3b80d8

utils/TableGen/AsmWriterEmitter.cpp

index 56b2ef82b664deb6479415ca500cfd95d8bfb3e8..7f9d4061f9b5b9b30cadfcf3d1bd0e563629e711 100644 (file)
@@ -436,7 +436,7 @@ void AsmWriterEmitter::EmitPrintInstruction(raw_ostream &O) {
 
   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";