[pypy-commit] pypy s390x-backend: do not assert, but check if it is a CallDescr, in the case call_assembler, assume the default word size
plan_rich
pypy.commits at gmail.com
Fri Jan 15 11:00:09 EST 2016
Author: Richard Plangger <planrichi at gmail.com>
Branch: s390x-backend
Changeset: r81806:2b0a2ef88c35
Date: 2016-01-15 16:59 +0100
http://bitbucket.org/pypy/pypy/changeset/2b0a2ef88c35/
Log: do not assert, but check if it is a CallDescr, in the case
call_assembler, assume the default word size
diff --git a/rpython/jit/backend/zarch/callbuilder.py b/rpython/jit/backend/zarch/callbuilder.py
--- a/rpython/jit/backend/zarch/callbuilder.py
+++ b/rpython/jit/backend/zarch/callbuilder.py
@@ -24,8 +24,7 @@
type = INT
size = WORD
self.ressign = True
- if calldescr is not None:
- assert isinstance(calldescr, CallDescr)
+ if calldescr is not None and isinstance(calldescr, CallDescr)
type = calldescr.get_result_type()
size = calldescr.get_result_size()
self.ressign = calldescr.is_result_signed()
More information about the pypy-commit
mailing list