[pypy-commit] pypy llconst: fix test
rlamy
noreply at buildbot.pypy.org
Sat Oct 10 20:09:58 CEST 2015
Author: Ronan Lamy <ronan.lamy at gmail.com>
Branch: llconst
Changeset: r80103:08389d8b7079
Date: 2015-10-10 19:10 +0100
http://bitbucket.org/pypy/pypy/changeset/08389d8b7079/
Log: fix test
diff --git a/rpython/translator/unsimplify.py b/rpython/translator/unsimplify.py
--- a/rpython/translator/unsimplify.py
+++ b/rpython/translator/unsimplify.py
@@ -1,5 +1,6 @@
from rpython.flowspace.model import (Variable, Constant, Block, Link,
SpaceOperation, c_last_exception, checkgraph)
+from rpython.rtyper.rmodel import ll_const
def varoftype(concretetype, name=None):
@@ -101,7 +102,7 @@
" containing an int or str or instance is actually"
" known to be constant, e.g. always 42." % (
v, v.concretetype))
- c = Constant(None, lltype.Void)
+ c = ll_const(None)
w = varmap[v]
newop = SpaceOperation('same_as', [c], w)
i = 0
More information about the pypy-commit
mailing list