Commits

Hakan Ardo committed ce8c2eb

corner case not handled very well

Comments (0)

Files changed (1)

pypy/jit/metainterp/optimizeopt/optimizer.py

         return guards
 
     def import_from(self, other, optimizer):
+        if self.level == LEVEL_CONSTANT:
+            assert other.level == LEVEL_CONSTANT
+            assert other.box.same_constant(self.box)
+            return
         assert self.level <= LEVEL_NONNULL
         if other.level == LEVEL_CONSTANT:
             self.make_constant(other.get_key_box())