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:
f21c0e9
)
fix compiler crash
author
Stefan Behnel
<stefan_ml@behnel.de>
Sun, 8 Dec 2013 14:12:55 +0000
(15:12 +0100)
committer
Stefan Behnel
<stefan_ml@behnel.de>
Sun, 8 Dec 2013 14:12:55 +0000
(15:12 +0100)
Cython/Compiler/Optimize.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/Optimize.py
b/Cython/Compiler/Optimize.py
index
b558657
..
7164863
100644
(file)
--- a/
Cython/Compiler/Optimize.py
+++ b/
Cython/Compiler/Optimize.py
@@
-3394,6
+3394,9
@@
class ConstantFolding(Visitor.VisitorTransform, SkipDeclarations):
def visit_ExprStatNode(self, node):
self.visitchildren(node)
+ if not isinstance(node.expr, ExprNodes.ExprNode):
+ # ParallelRangeTransform does this ...
+ return node
# drop unused constant expressions
if node.expr.has_constant_result():
return None