Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Clippy
  • Loading branch information
ShaharNaveh committed Jan 23, 2026
commit 2c2b13784eea02489a739cf32abfebedfafd9beb
6 changes: 3 additions & 3 deletions crates/codegen/src/ir.rs
Original file line number Diff line number Diff line change
Expand Up @@ -742,13 +742,13 @@ fn generate_exception_table(blocks: &[Block], block_to_index: &[u32]) -> Box<[u8
// instr_size includes EXTENDED_ARG instructions
let instr_size = instr.arg.instr_size() as u32;

match (&current_entry, &instr.except_handler) {
match (&current_entry, instr.except_handler) {
// No current entry, no handler - nothing to do
(None, None) => {}

// No current entry, handler starts - begin new entry
(None, Some(handler)) => {
current_entry = Some((handler.clone(), instr_index));
current_entry = Some((handler, instr_index));
}

// Current entry exists, same handler - continue
Expand All @@ -767,7 +767,7 @@ fn generate_exception_table(blocks: &[Block], block_to_index: &[u32]) -> Box<[u8
curr_handler.stack_depth as u16,
curr_handler.preserve_lasti,
));
current_entry = Some((handler.clone(), instr_index));
current_entry = Some((handler, instr_index));
}

// Current entry exists, no handler - finish current entry
Expand Down
2 changes: 1 addition & 1 deletion examples/dis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ fn main() -> Result<(), lexopt::Error> {

for script in &scripts {
if script.exists() && script.is_file() {
let res = display_script(script, mode, opts.clone(), expand_code_objects);
let res = display_script(script, mode, opts, expand_code_objects);
if let Err(e) = res {
error!("Error while compiling {script:?}: {e}");
}
Expand Down
Loading