Author: Spenser Bauman <[email protected]>
Branch: value-classes
Changeset: r87424:8b4d2fcf1975
Date: 2016-09-27 16:42 -0400
http://bitbucket.org/pypy/pypy/changeset/8b4d2fcf1975/
Log: Catch edge case
diff --git a/rpython/jit/metainterp/optimizeopt/virtualstate.py
b/rpython/jit/metainterp/optimizeopt/virtualstate.py
--- a/rpython/jit/metainterp/optimizeopt/virtualstate.py
+++ b/rpython/jit/metainterp/optimizeopt/virtualstate.py
@@ -237,7 +237,8 @@
box = optimizer.get_box_replacement(box)
info = optimizer.getptrinfo(box)
- if info is None or info.is_virtual():
+ if (not self.typedescr.is_value_class() or
+ info is None or info.is_virtual()):
return AbstractVirtualStructStateInfo.enum_forced_boxes(
self, boxes, box, optimizer, force_boxes)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit