From 857ff5f8a8a093d00d4cffc204adfb6e013fc36f Mon Sep 17 00:00:00 2001 From: Dag Sverre Seljebotn Date: Sun, 29 Mar 2009 18:00:15 +0200 Subject: [PATCH] CondExprNode over to new temps --- Cython/Compiler/ExprNodes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cython/Compiler/ExprNodes.py b/Cython/Compiler/ExprNodes.py index 077b7a28..d182db9e 100644 --- a/Cython/Compiler/ExprNodes.py +++ b/Cython/Compiler/ExprNodes.py @@ -4505,7 +4505,7 @@ class BoolBinopNode(NewTempExprNode): return (test_result, self.type.is_pyobject) -class CondExprNode(ExprNode): +class CondExprNode(NewTempExprNode): # Short-circuiting conditional expression. # # test ExprNode @@ -4570,7 +4570,7 @@ class CondExprNode(ExprNode): # subexpr allocation strategy than the default, so override evaluation_code. code.mark_pos(self.pos) - #self.allocate_temp_result(code) # uncomment this when we switch to new temps + self.allocate_temp_result(code) self.test.generate_evaluation_code(code) code.putln("if (%s) {" % self.test.result() ) self.eval_and_get(code, self.true_val) -- 2.26.2