about summary refs log tree commit diff
path: root/src/allocator.rs
diff options
context:
space:
mode:
authorbjorn3 <bjorn3@users.noreply.github.com>2020-02-14 18:23:29 +0100
committerbjorn3 <bjorn3@users.noreply.github.com>2020-02-14 18:23:29 +0100
commit430f738392dae75954bfa0059025dd18dadeff7d (patch)
treed2ab1d816b329b7186bcb58cc14056f8faf73dd3 /src/allocator.rs
parentb5b2ffab6ae4026f8d9a8b552e075fdc81002ec7 (diff)
downloadrust-430f738392dae75954bfa0059025dd18dadeff7d.tar.gz
rust-430f738392dae75954bfa0059025dd18dadeff7d.zip
Update Cranelift for basic blocks
Diffstat (limited to 'src/allocator.rs')
-rw-r--r--src/allocator.rs6
1 files changed, 3 insertions, 3 deletions
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<impl Backend + 'static>, 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::<Vec<Value>>();
 
             let callee_func_ref = module.declare_func_in_func(callee_func_id, &mut bcx.func);