[pypy-commit] pypy default: Attach this argument as an attribute here, to help debugging in case

arigo noreply at buildbot.pypy.org
Mon Apr 8 21:38:53 CEST 2013


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r63155:972e776a277f
Date: 2013-04-08 21:38 +0200
http://bitbucket.org/pypy/pypy/changeset/972e776a277f/

Log:	Attach this argument as an attribute here, to help debugging in case
	I ever get the same translation crash again.

diff --git a/rpython/rtyper/rptr.py b/rpython/rtyper/rptr.py
--- a/rpython/rtyper/rptr.py
+++ b/rpython/rtyper/rptr.py
@@ -234,6 +234,7 @@
 class InteriorPtrRepr(Repr):
     def __init__(self, ptrtype):
         assert isinstance(ptrtype, lltype.InteriorPtr)
+        self._ptrtype = ptrtype     # for debugging
         self.v_offsets = []
         numitemoffsets = 0
         for i, offset in enumerate(ptrtype.offsets):


More information about the pypy-commit mailing list