Check the simplified type used in check-expr in trans.

This commit is contained in:
Graydon Hoare 2010-07-01 17:55:28 -07:00
parent ae25e66a7f
commit 4bec9538cc
1 changed files with 1 additions and 1 deletions

View File

@ -2066,7 +2066,7 @@ let trans_visitor
List.iter patch fwd_jmps
and trans_check_expr (id:node_id) (e:Ast.expr) : unit =
match expr_type cx e with
match simplified_ty (expr_type cx e) with
Ast.TY_bool ->
let fwd_jmps = trans_cond false e in
trans_cond_fail (Fmt.fmt_to_str Ast.fmt_expr e) fwd_jmps