Commits

Armin Rigo committed 3f59cdb

Fix

Comments (0)

Files changed (1)

pypy/jit/metainterp/resume.py

         # allocate() methods must fill in the cache as soon as they
         # have the object, before they fill its fields.
         assert self.virtuals_cache is not None
-        assert self.rd_virtuals is not None
         v = self.virtuals_cache[index]
         if not v:
+            assert self.rd_virtuals is not None
             v = self.rd_virtuals[index].allocate(self, index)
             ll_assert(v == self.virtuals_cache[index], "resume.py: bad cache")
         return v