Unbreak mingw build. Patch by Viktor Kutuzov.
authorEvan Cheng <evan.cheng@apple.com>
Thu, 25 Jun 2009 22:04:44 +0000 (22:04 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Thu, 25 Jun 2009 22:04:44 +0000 (22:04 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74212 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp

index 2bfdcca98d1a496632258485a0727ea4ec92a147..e02e2c3506d5ddc98977c11687b73da192222b1a 100644 (file)
@@ -637,7 +637,7 @@ void
 ARMAsmPrinter::printBitfieldInvMaskImmOperand(const MachineInstr *MI, int Op) {
   const MachineOperand &MO = MI->getOperand(Op);
   uint32_t v = ~MO.getImm();
-  int32_t lsb = ffs (v) - 1;
+  int32_t lsb = CountTrailingZeros_32(v);
   int32_t width = (32 - CountLeadingZeros_32 (v)) - lsb;
   assert(MO.isImm() && "Not a valid bf_inv_mask_imm value!");
   O << "#" << lsb << ", #" << width;