Add bool/int conversion as IR operations.

Fixes constructor-09.glsl and CorrectParse2.frag.
diff --git a/ast_function.cpp b/ast_function.cpp
index 2ca8976..09b7879 100644
--- a/ast_function.cpp
+++ b/ast_function.cpp
@@ -130,7 +130,7 @@
 	 return new ir_expression(ir_unop_f2i, desired_type, src, NULL);
       else {
 	 assert(b == GLSL_TYPE_BOOL);
-	 assert(!"FINISHME: Convert bool to int / uint.");
+	 return new ir_expression(ir_unop_f2b, desired_type, src, NULL);
       }
    case GLSL_TYPE_FLOAT:
       switch (b) {