Author: Matti Picus <[email protected]>
Branch: 
Changeset: r61771:50adf669f221
Date: 2013-02-25 21:56 +0200
http://bitbucket.org/pypy/pypy/changeset/50adf669f221/

Log:    do not look for ids on chunks with no code

diff --git a/pypy/module/pypyjit/test_pypy_c/model.py 
b/pypy/module/pypyjit/test_pypy_c/model.py
--- a/pypy/module/pypyjit/test_pypy_c/model.py
+++ b/pypy/module/pypyjit/test_pypy_c/model.py
@@ -117,7 +117,7 @@
         #
         # 2. compute the ids of all the inlined functions
         for chunk in self.chunks:
-            if isinstance(chunk, TraceWithIds):
+            if isinstance(chunk, TraceWithIds) and chunk.code:
                 chunk.compute_ids(ids)
 
     def get_set_of_opcodes(self):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to