[pypy-svn] r46176 - pypy/branch/pypy-more-rtti-inprogress/translator/backendopt
fijal at codespeak.net
fijal at codespeak.net
Wed Aug 29 23:07:43 CEST 2007
Author: fijal
Date: Wed Aug 29 23:07:41 2007
New Revision: 46176
Modified:
pypy/branch/pypy-more-rtti-inprogress/translator/backendopt/inline.py
Log:
Oops. Check if this argument is there
Modified: pypy/branch/pypy-more-rtti-inprogress/translator/backendopt/inline.py
==============================================================================
--- pypy/branch/pypy-more-rtti-inprogress/translator/backendopt/inline.py (original)
+++ pypy/branch/pypy-more-rtti-inprogress/translator/backendopt/inline.py Wed Aug 29 23:07:41 2007
@@ -694,7 +694,8 @@
while heap:
weight, _, graph = heap[0]
if not valid_weight.get(graph):
- if getattr(graph.func, '_always_inline_', None):
+ if hasattr(graph, 'func') and \
+ getattr(graph.func, '_always_inline_', None):
weight, fixed = 0.0, True
else:
weight, fixed = heuristic(graph)
More information about the Pypy-commit
mailing list