Commits

Maciej Fijalkowski  committed 882458b

there are assert that say "this must be in reg". Force it

  • Participants
  • Parent commits 52ed6dd

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.loc(op.getarg(0))
+        loc0 = self.rm.force_allocate_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))