Skip to content

Commit

Permalink
Mark the code unreachable instead.
Browse files Browse the repository at this point in the history
  • Loading branch information
sciguyryan committed Feb 11, 2024
1 parent 363664b commit 263b2bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion redox-core/src/compiling/compiler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ impl Compiler {
Instruction::CallRelCSU32Offset(*label_position as u32, label.clone())
}
Instruction::CallRelCSU32Offset(_, _) => continue,
_ => panic!(),
_ => unreachable!("unexpected labelled instruction instance - {ins}"),
}
} else {
panic!("invalid syntax - unknown label - {label}");
Expand Down

0 comments on commit 263b2bb

Please sign in to comment.