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
This commit is contained in:
Manman Ren 2012-09-13 20:47:48 +00:00
parent 9aba7ea472
commit 785a41d138

View 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";