[pypy-svn] jitviewer commit 9fc4e942ce34: A fix for loops that have no debug_merge_points

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Wed Dec 1 14:32:42 CET 2010


# HG changeset patch -- Bitbucket.org
# Project jitviewer
# URL http://bitbucket.org/pypy/jitviewer/overview
# User Maciej Fijalkowski <fijall at gmail.com>
# Date 1291209974 -7200
# Node ID 9fc4e942ce3449023b45a2b6287c9cd39441aaf9
# Parent  18eb76ea4a2af4336a23a344686186d69b83bb12
A fix for loops that have no debug_merge_points

--- a/_jitviewer/loops.py
+++ b/_jitviewer/loops.py
@@ -314,7 +314,7 @@ def slice_debug_merge_points(operations,
         if not stack:
             stack.append([])
         else:
-            if bc.inline_level + 1 != len(stack):
+            if bc.inline_level is not None and bc.inline_level + 1 != len(stack):
                 if bc.inline_level < len(stack):
                     last = stack.pop()
                     stack[-1].append(Function(last, getpath(stack), storage))



More information about the Pypy-commit mailing list