Skip to content

Commit 981edae

Browse files
committed
Fix two incorrect block-context uses in rustc.
1 parent 2122e36 commit 981edae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/comp/middle/trans.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -804,7 +804,7 @@ impure fn trans_expr(@block_ctxt cx, &ast.expr e) -> result {
804804
check (lhs_res._1);
805805
auto rhs_res = trans_expr(lhs_res._0.bcx, *src);
806806
ret res(rhs_res.bcx,
807-
cx.build.Store(rhs_res.val, lhs_res._0.val));
807+
rhs_res.bcx.build.Store(rhs_res.val, lhs_res._0.val));
808808
}
809809

810810
case (ast.expr_call(?f, ?args, _)) {
@@ -825,7 +825,7 @@ impure fn trans_expr(@block_ctxt cx, &ast.expr e) -> result {
825825
cx.fcx.lltaskptr);
826826
llargs += args_res._1;
827827
ret res(args_res._0,
828-
cx.build.Call(f_res._0.val, llargs));
828+
args_res._0.build.Call(f_res._0.val, llargs));
829829
}
830830

831831
}

0 commit comments

Comments
 (0)