diff --git a/lib/CodeGen/RegAllocPBQP.cpp b/lib/CodeGen/RegAllocPBQP.cpp index 672a7d4e63b..63538353a8c 100644 --- a/lib/CodeGen/RegAllocPBQP.cpp +++ b/lib/CodeGen/RegAllocPBQP.cpp @@ -293,7 +293,8 @@ std::auto_ptr PBQPBuilderWithCoalescing::build( - PBQP::PBQPNum cBenefit = std::pow(10.0f, loopInfo->getLoopDepth(mbb)); + PBQP::PBQPNum cBenefit = + std::pow(10.0f, (float)loopInfo->getLoopDepth(mbb)); if (cp.isPhys()) { if (!lis->isAllocatable(dst))