OSDN Git Service

Unbreak build on Linux by removing Darwinism.
authorNick Lewycky <nicholas@mxc.ca>
Wed, 24 Jun 2009 01:08:42 +0000 (01:08 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Wed, 24 Jun 2009 01:08:42 +0000 (01:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74046 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp

index 78d3224..c1982f4 100644 (file)
@@ -644,7 +644,7 @@ 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 width = fls (v) - lsb;
+  int32_t width = (32 - CountLeadingZeros_32 (v)) - lsb;
   assert(MO.isImm() && "Not a valid bf_inv_mask_imm value!");
   O << "#" << lsb << ", #" << width;
 }