From f97b124a44944feb41c39a4478eda55dbc5da44d Mon Sep 17 00:00:00 2001 From: Niko Matsakis Date: Mon, 5 Jan 2015 11:06:20 -0500 Subject: [PATCH] Fix ICE caused by forgotten bcx --- src/librustc_trans/trans/callee.rs | 2 +- src/test/run-pass/call-closure-from-overloaded-op.rs | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/librustc_trans/trans/callee.rs b/src/librustc_trans/trans/callee.rs index f598083c5e44..9454de771389 100644 --- a/src/librustc_trans/trans/callee.rs +++ b/src/librustc_trans/trans/callee.rs @@ -100,7 +100,7 @@ fn trans<'blk, 'tcx>(bcx: Block<'blk, 'tcx>, expr: &ast::Expr) fn datum_callee<'blk, 'tcx>(bcx: Block<'blk, 'tcx>, expr: &ast::Expr) -> Callee<'blk, 'tcx> { - let DatumBlock { datum, .. } = expr::trans(bcx, expr); + let DatumBlock { mut bcx, datum, .. } = expr::trans(bcx, expr); match datum.ty.sty { ty::ty_bare_fn(..) => { let llval = datum.to_llscalarish(bcx); diff --git a/src/test/run-pass/call-closure-from-overloaded-op.rs b/src/test/run-pass/call-closure-from-overloaded-op.rs index 032bb83d3ab5..29fcdf504de6 100644 --- a/src/test/run-pass/call-closure-from-overloaded-op.rs +++ b/src/test/run-pass/call-closure-from-overloaded-op.rs @@ -8,8 +8,6 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -// ignore-test FIXME(japaric) this ICEs - fn foo() -> int { 22 } pub fn main() {