projects
/
platform
/
upstream
/
python-cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf9d6a2
)
fix compiler crash
author
Stefan Behnel
<stefan_ml@behnel.de>
Wed, 6 Feb 2013 06:17:44 +0000
(07:17 +0100)
committer
Stefan Behnel
<stefan_ml@behnel.de>
Wed, 6 Feb 2013 06:17:44 +0000
(07:17 +0100)
Cython/Compiler/Optimize.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/Optimize.py
b/Cython/Compiler/Optimize.py
index
c0df9a3
..
cc86ac2
100644
(file)
--- a/
Cython/Compiler/Optimize.py
+++ b/
Cython/Compiler/Optimize.py
@@
-1186,11
+1186,11
@@
class SimplifyCalls(Visitor.EnvTransform):
kwargs = node.keyword_args
function = node.function
+ if not function.is_name:
+ # TODO: optimise methods as well
+ return node
entry = function.entry
if not entry:
- if not function.is_name:
- # TODO: optimise methods as well
- return node
entry = self.current_env().lookup(function.name)
if not entry:
return node