From 430f738392dae75954bfa0059025dd18dadeff7d Mon Sep 17 00:00:00 2001 From: bjorn3 Date: Fri, 14 Feb 2020 18:23:29 +0100 Subject: Update Cranelift for basic blocks --- src/allocator.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/allocator.rs') diff --git a/src/allocator.rs b/src/allocator.rs index df9e6aa1962..8405096f32b 100644 --- a/src/allocator.rs +++ b/src/allocator.rs @@ -78,11 +78,11 @@ fn codegen_inner(module: &mut Module, kind: AllocatorKin let mut func_ctx = FunctionBuilderContext::new(); let mut bcx = FunctionBuilder::new(&mut ctx.func, &mut func_ctx); - let ebb = bcx.create_ebb(); - bcx.switch_to_block(ebb); + let block = bcx.create_block(); + bcx.switch_to_block(block); let args = arg_tys .into_iter() - .map(|ty| bcx.append_ebb_param(ebb, ty)) + .map(|ty| bcx.append_block_param(block, ty)) .collect::>(); let callee_func_ref = module.declare_func_in_func(callee_func_id, &mut bcx.func); -- cgit 1.4.1-3-g733a5