mirror of
https://github.com/aljazceru/turso.git
synced 2026-02-11 19:24:21 +01:00
fix bug after switch from HashMap to Vec
This commit is contained in:
@@ -110,10 +110,8 @@ impl ProgramBuilder {
|
||||
|
||||
pub fn emit_insn(&mut self, insn: Insn) {
|
||||
if let Some(label) = self.next_insn_label {
|
||||
self.label_to_resolved_offset.insert(
|
||||
label.to_label_value() as usize,
|
||||
Some(self.insns.len() as InsnReference),
|
||||
);
|
||||
self.label_to_resolved_offset[label.to_label_value() as usize] =
|
||||
Some(self.insns.len() as InsnReference);
|
||||
self.next_insn_label = None;
|
||||
}
|
||||
self.insns.push(insn);
|
||||
|
||||
Reference in New Issue
Block a user