[llvm-commits] [llvm] r140928 - /llvm/trunk/utils/TableGen/FixedLenDecoderEmitter.cpp

Bob Wilson bob.wilson at apple.com
Fri Sep 30 19:47:54 PDT 2011


Author: bwilson
Date: Fri Sep 30 21:47:54 2011
New Revision: 140928

URL: http://llvm.org/viewvc/llvm-project?rev=140928&view=rev
Log:
Subtarget getFeatureBits() returns a uint64_t, not unsigned.

Modified:
    llvm/trunk/utils/TableGen/FixedLenDecoderEmitter.cpp

Modified: llvm/trunk/utils/TableGen/FixedLenDecoderEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/FixedLenDecoderEmitter.cpp?rev=140928&r1=140927&r2=140928&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/FixedLenDecoderEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/FixedLenDecoderEmitter.cpp Fri Sep 30 21:47:54 2011
@@ -577,7 +577,7 @@
     << "(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.





More information about the llvm-commits mailing list