Commits

Armin Rigo  committed f892171

Add a sanity check.

  • Participants
  • Parent commits a2e6e96
  • Branches remove-globals-in-jit

Comments (0)

Files changed (1)

File pypy/jit/metainterp/resume.py

     def consume_virtualref_info(self, vrefinfo, numb, end):
         # we have to decode a list of references containing pairs
         # [..., virtual, vref, ...]  stopping at 'end'
+        if vrefinfo is None:
+            assert end == 0
+            return
         assert (end & 1) == 0
         for i in range(0, end, 2):
             virtual = self.decode_ref(numb.nums[i])