Only need simple, don't need to force temp for bool binop nodes.
authorRobert Bradshaw <robertwb@math.washington.edu>
Thu, 15 Oct 2009 11:04:26 +0000 (04:04 -0700)
committerRobert Bradshaw <robertwb@math.washington.edu>
Thu, 15 Oct 2009 11:04:26 +0000 (04:04 -0700)
Cython/Compiler/ExprNodes.py

index fe21d650408221c8ba2b7e61399943a8eedf0898..262e79e560f06c0dea70c2e17d06400b41663837 100644 (file)
@@ -4862,8 +4862,8 @@ class BoolBinopNode(ExprNode):
         
         # For what we're about to do, it's vital that
         # both operands be temp nodes.
-        self.operand1 = self.operand1.coerce_to_temp(env)
-        self.operand2 = self.operand2.coerce_to_temp(env)
+        self.operand1 = self.operand1.coerce_to_simple(env)
+        self.operand2 = self.operand2.coerce_to_simple(env)
         self.is_temp = 1
 
     gil_message = "Truth-testing Python object"