Author: Armin Rigo <[email protected]>
Branch:
Changeset: r97170:f95a2bad0572
Date: 2019-08-13 18:00 +0000
http://bitbucket.org/pypy/pypy/changeset/f95a2bad0572/
Log: workaround (xxx no idea how things end up here but only on arm64-2
when running pypy)
diff --git a/rpython/translator/c/funcgen.py b/rpython/translator/c/funcgen.py
--- a/rpython/translator/c/funcgen.py
+++ b/rpython/translator/c/funcgen.py
@@ -5,7 +5,7 @@
from rpython.flowspace.model import Variable, Constant, mkentrymap
from rpython.rtyper.lltypesystem.lltype import (Ptr, Void, Bool, Signed,
Unsigned,
SignedLongLong, Float, UnsignedLongLong, Char, UniChar, ContainerType,
- Array, FixedSizeArray, ForwardReference, FuncType)
+ Array, FixedSizeArray, ForwardReference, FuncType, typeOf)
from rpython.rtyper.lltypesystem.rffi import INT
from rpython.rtyper.lltypesystem.llmemory import Address
from rpython.translator.backendopt.ssa import SSI_to_SSA
@@ -471,7 +471,10 @@
targets = [fn.value._obj.graph]
except AttributeError:
targets = None
- return self.generic_call(fn.concretetype, self.expr(fn),
+ FN_TYPE = fn.concretetype
+ if FN_TYPE is Void: # XXX no idea how this is possible
+ FN_TYPE = typeOf(fn.value)
+ return self.generic_call(FN_TYPE, self.expr(fn),
op.args[1:], op.result, targets)
def OP_INDIRECT_CALL(self, op):
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit