diff options
author | David Li <li.davidm96@gmail.com> | 2017-11-26 19:58:46 -0500 |
---|---|---|
committer | David Li <li.davidm96@gmail.com> | 2017-11-26 19:58:46 -0500 |
commit | b007bc6f9dcbef41c3710cc8ce63b04504a14244 (patch) | |
tree | 04b6701fe695a59b7ff4622c6f01f49c134c732e /src/semantic/analysis.rs | |
parent | c8f4b4d23a55b73cc7d1aa7e4db4a37100c4116d (diff) |
Rename ir::Binop to ir::BinOp
Diffstat (limited to 'src/semantic/analysis.rs')
-rw-r--r-- | src/semantic/analysis.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/semantic/analysis.rs b/src/semantic/analysis.rs index 4c936f3..973e703 100644 --- a/src/semantic/analysis.rs +++ b/src/semantic/analysis.rs @@ -222,7 +222,7 @@ fn trans_exp<'a, 'b, F: frame::Frame>( &Add => { match (left_ty, right_ty) { (Ty::Int, Ty::Int) => { - Ok((tr.make_binop(ir::Binop::Plus, left_exp, right_exp), + Ok((tr.make_binop(ir::BinOp::Plus, left_exp, right_exp), Ty::Int)) } (Ty::String, Ty::String) => { |