From dc58b3f8ccd817fdee390a3df5b8e0fb29d5397c Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Fri, 2 Apr 2010 02:13:43 -1000 Subject: Add conversion of bool to float as an IR operation to match int to float. --- ir.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ir.cpp') diff --git a/ir.cpp b/ir.cpp index d9faac03d4..674ba10f57 100644 --- a/ir.cpp +++ b/ir.cpp @@ -64,6 +64,8 @@ ir_expression::get_num_operands(void) 1, /* ir_unop_log2 */ 1, /* ir_unop_f2i */ 1, /* ir_unop_i2f */ + 1, /* ir_unop_f2b */ + 1, /* ir_unop_b2f */ 1, /* ir_unop_u2f */ 1, /* ir_unop_trunc */ -- cgit v1.2.3