Know some identities about tokenfactor nodes.
[oota-llvm.git] / lib / CodeGen / RegAllocLinearScan.cpp
index 2b389117e7e0385d8458e8deebcbbbfcfe18df34..0878e466d23473a7faf882212bc5d734dd9379ec 100644 (file)
@@ -423,7 +423,7 @@ void RA::assignRegOrStackSlotAtInterval(LiveInterval* cur)
 
   DEBUG(std::cerr << "\tassigning stack slot at interval "<< *cur << ":\n");
 
-  float minWeight = HUGE_VAL;
+  float minWeight = float(HUGE_VAL);
   unsigned minReg = 0;
   const TargetRegisterClass* rc = mf_->getSSARegMap()->getRegClass(cur->reg);
   for (TargetRegisterClass::iterator i = rc->allocation_order_begin(*mf_),