[pypy-commit] pypy ec-threadlocal: Translation fix

arigo noreply at buildbot.pypy.org
Mon Jun 23 19:08:30 CEST 2014


Author: Armin Rigo <arigo at tunes.org>
Branch: ec-threadlocal
Changeset: r72164:f43924494b76
Date: 2014-06-23 19:07 +0200
http://bitbucket.org/pypy/pypy/changeset/f43924494b76/

Log:	Translation fix

diff --git a/rpython/jit/backend/x86/assembler.py b/rpython/jit/backend/x86/assembler.py
--- a/rpython/jit/backend/x86/assembler.py
+++ b/rpython/jit/backend/x86/assembler.py
@@ -2357,7 +2357,7 @@
         from rpython.jit.backend.x86 import stmtlocal
         assert isinstance(resloc, RegLoc)
         effectinfo = op.getdescr().get_extra_info()
-        assert len(effectinfo.extradescrs) == 1
+        assert effectinfo.extradescrs is not None
         ed = effectinfo.extradescrs[0]
         assert isinstance(ed, ThreadLocalRefDescr)
         addr1 = rffi.cast(lltype.Signed, ed.get_tlref_addr())


More information about the pypy-commit mailing list