diff options
| author | Graydon Hoare <[email protected]> | 2010-09-27 18:25:02 -0700 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2010-09-27 18:25:02 -0700 |
| commit | 5b4b035c7a041badcc656e3c403417f16d9a05f8 (patch) | |
| tree | 0542532722a028e1bbdd7af88fea6fc6cc562f06 /src/comp/middle | |
| parent | Translate exit-task glue such that rustc's output programs exit properly. (diff) | |
| download | rust-5b4b035c7a041badcc656e3c403417f16d9a05f8.tar.xz rust-5b4b035c7a041badcc656e3c403417f16d9a05f8.zip | |
Start building up the expression tower.
Diffstat (limited to 'src/comp/middle')
| -rw-r--r-- | src/comp/middle/trans.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/comp/middle/trans.rs b/src/comp/middle/trans.rs index 81b471c2..b9b3f4d2 100644 --- a/src/comp/middle/trans.rs +++ b/src/comp/middle/trans.rs @@ -202,9 +202,9 @@ fn trans_upcall(@block_ctxt cx, str name, vec[ValueRef] args) -> ValueRef { ret cx.build.Call(llglue, call_args); } -fn trans_log(@block_ctxt cx, &ast.atom a) { - alt (a) { - case (ast.atom_lit(?lit)) { +fn trans_log(@block_ctxt cx, &ast.expr e) { + alt (e) { + case (ast.expr_lit(?lit)) { alt (*lit) { case (ast.lit_int(?i)) { trans_upcall(cx, "upcall_log_int", vec(C_int(i))); @@ -215,7 +215,7 @@ fn trans_log(@block_ctxt cx, &ast.atom a) { } } case (_) { - cx.fcx.tcx.sess.unimpl("atom variant in trans_log"); + cx.fcx.tcx.sess.unimpl("expr variant in trans_log"); } } } |