Skip to content

Commit

Permalink
fix: Fix update_acir deleting all debug information (#2643)
Browse files Browse the repository at this point in the history
  • Loading branch information
TomAFrench authored Sep 11, 2023
1 parent bc53432 commit a8a5395
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/noirc_errors/src/debug_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ impl DebugInfo {
let old_locations = mem::take(&mut self.locations);

for (old_opcode_location, source_locations) in old_locations {
let _ = update_map.new_locations(old_opcode_location).map(|new_opcode_location| {
update_map.new_locations(old_opcode_location).for_each(|new_opcode_location| {
self.locations.insert(new_opcode_location, source_locations.clone());
});
}
Expand Down

0 comments on commit a8a5395

Please sign in to comment.