Commits

Maciej Fijalkowski committed e6f379d

argh, I'm stupid, use the correct API

  • Participants
  • Parent commits 409a8b2

Comments (0)

Files changed (1)

File pypy/jit/backend/x86/regalloc.py

         self.xrm.possibly_free_var(op.getarg(0))
 
     def consider_cast_int_to_float(self, op):
-        loc0 = self.rm.force_allocate_reg(op.getarg(0))
+        loc0 = self.rm.make_sure_var_in_reg(op.getarg(0))
         loc1 = self.xrm.force_allocate_reg(op.result)
         self.Perform(op, [loc0], loc1)
         self.rm.possibly_free_var(op.getarg(0))