Cleanups to previous commits for issue #1393.

This commit is contained in:
Kevin Atkinson
2012-01-10 18:33:26 -07:00
committed by Marijn Haverbeke
parent 175196bbb8
commit 44352df57c
6 changed files with 11 additions and 9 deletions

View File

@@ -245,6 +245,8 @@ tag const_val {
const_str(str);
}
// FIXME (#1417): any function that uses this function should likely be moved
// into the middle end
fn eval_const_expr(e: @expr) -> const_val {
fn fromb(b: bool) -> const_val { const_int(b as i64) }
alt e.node {