about summary refs log tree commit diff homepage
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/Solver/ConstantDivision.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Solver/ConstantDivision.cpp b/lib/Solver/ConstantDivision.cpp
index d822de1a..57b83e17 100644
--- a/lib/Solver/ConstantDivision.cpp
+++ b/lib/Solver/ConstantDivision.cpp
@@ -86,7 +86,7 @@ void ComputeMultConstants64(uint64_t multiplicand,
 
   while (x) {
     // Determine rightmost contiguous region of 1s.
-    unsigned low = bits64::indexOfRightmostBit(x);
+    unsigned low = countTrailingZeroes(x);
     uint64_t lowbit = 1LL << low;
     uint64_t p = x + lowbit;
     uint64_t q = bits64::isolateRightmostBit(p);