Fix ICE caused by forgotten bcx

This commit is contained in:
Niko Matsakis 2015-01-05 11:06:20 -05:00 committed by Jorge Aparicio
parent 79af277623
commit f97b124a44
2 changed files with 1 additions and 3 deletions

View file

@ -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);

View file

@ -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() {