Fix ICE caused by forgotten bcx
This commit is contained in:
parent
79af277623
commit
f97b124a44
2 changed files with 1 additions and 3 deletions
|
@ -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);
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Add table
Reference in a new issue