Subtarget getFeatureBits() returns a uint64_t, not unsigned.
authorBob Wilson <bob.wilson@apple.com>
Sat, 1 Oct 2011 02:47:54 +0000 (02:47 +0000)
committerBob Wilson <bob.wilson@apple.com>
Sat, 1 Oct 2011 02:47:54 +0000 (02:47 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140928 91177308-0d34-0410-b5e6-96231b3b80d8

utils/TableGen/FixedLenDecoderEmitter.cpp

index 33c97c9c2df9af33ebf94bfdd98c32444aaa4bc9..a3255a06e9262f4f943576531d0d2c32b93a2b3d 100644 (file)
@@ -577,7 +577,7 @@ void FilterChooser::emitTop(raw_ostream &o, unsigned Indentation,
     << "(MCInst &MI, uint" << BitWidth << "_t insn, uint64_t Address, "
     << "const void *Decoder, const MCSubtargetInfo &STI) {\n";
   o.indent(Indentation) << "  unsigned tmp = 0;\n  (void)tmp;\n" << Emitter->Locals << "\n";
-  o.indent(Indentation) << "  unsigned Bits = STI.getFeatureBits();\n";
+  o.indent(Indentation) << "  uint64_t Bits = STI.getFeatureBits();\n";
 
   ++Indentation; ++Indentation;
   // Emits code to decode the instructions.