[pypy-commit] pypy optresult: add a workaround
fijal
noreply at buildbot.pypy.org
Tue Jun 2 10:49:09 CEST 2015
Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: optresult
Changeset: r77751:5c6831ad7336
Date: 2015-06-02 10:28 +0200
http://bitbucket.org/pypy/pypy/changeset/5c6831ad7336/
Log: add a workaround
diff --git a/rpython/jit/metainterp/optimizeopt/intutils.py b/rpython/jit/metainterp/optimizeopt/intutils.py
--- a/rpython/jit/metainterp/optimizeopt/intutils.py
+++ b/rpython/jit/metainterp/optimizeopt/intutils.py
@@ -204,6 +204,10 @@
return IntUnbounded()
def contains(self, val):
+ if not isinstance(val, int):
+ if ((not self.has_lower or self.lower == MININT) and
+ not self.has_upper or self.upper == MAXINT):
+ return True # workaround for address as int
if self.has_lower and val < self.lower:
return False
if self.has_upper and val > self.upper:
More information about the pypy-commit
mailing list