mirror of
https://github.com/fluencelabs/wasmer
synced 2024-12-13 06:15:33 +00:00
Add start_of_code_block to function
This commit is contained in:
parent
0ee2ba0ee6
commit
b016ec6b34
@ -4724,6 +4724,12 @@ impl ModuleCodeGenerator<LLVMFunctionCodeGenerator, LLVMBackend, CodegenError>
|
||||
);
|
||||
let num_params = locals.len();
|
||||
|
||||
let start_of_code_block = self.context.append_basic_block(&function, "start_of_code");
|
||||
let entry_end_inst = self
|
||||
.builder
|
||||
.build_unconditional_branch(&start_of_code_block);
|
||||
self.builder.position_at_end(&start_of_code_block);
|
||||
|
||||
let code = LLVMFunctionCodeGenerator {
|
||||
state,
|
||||
builder: unsafe { ::std::mem::transmute::<&Builder, &'static Builder>(&self.builder) },
|
||||
|
Loading…
Reference in New Issue
Block a user