Expose convert_from_bool().

This commit is contained in:
Bill Currie 2013-09-27 17:41:20 +09:00
parent b66cbeeb57
commit ca9693d9cd
2 changed files with 2 additions and 1 deletions

View file

@ -593,6 +593,7 @@ void convert_nil (expr_t *e, struct type_s *t);
expr_t *test_expr (expr_t *e);
void backpatch (ex_list_t *list, expr_t *label);
expr_t *convert_bool (expr_t *e, int block);
expr_t *convert_from_bool (expr_t *e, struct type_s *type);
expr_t *bool_expr (int op, expr_t *label, expr_t *e1, expr_t *e2);
expr_t *binary_expr (int op, expr_t *e1, expr_t *e2);
expr_t *asx_expr (int op, expr_t *e1, expr_t *e2);

View file

@ -1363,7 +1363,7 @@ convert_bool (expr_t *e, int block)
return e;
}
static expr_t *
expr_t *
convert_from_bool (expr_t *e, type_t *type)
{
expr_t *zero;