Remove switch_to_block's jump_args argument.
switch_to_block doesn't need its jump_args argument, since jump arguments are handled by the `jump` instruction and others, rather than on the switch to a new ebb itself.
This commit is contained in:
@@ -82,7 +82,7 @@ impl FuncTranslator {
|
||||
// This clears the `ILBuilder`.
|
||||
let mut builder = FunctionBuilder::new(func, &mut self.il_builder);
|
||||
let entry_block = builder.create_ebb();
|
||||
builder.switch_to_block(entry_block, &[]); // This also creates values for the arguments.
|
||||
builder.switch_to_block(entry_block); // This also creates values for the arguments.
|
||||
builder.seal_block(entry_block);
|
||||
// Make sure the entry block is inserted in the layout before we make any callbacks to
|
||||
// `environ`. The callback functions may need to insert things in the entry block.
|
||||
|
||||
Reference in New Issue
Block a user