Skip to content

Commit 893190a

Browse files
committed
Improve block_id indexing
1 parent 51da6a9 commit 893190a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎zjit/src/hir.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6738,7 +6738,7 @@ impl Function {
67386738
[head, tail @ ..] => {
67396739
block_cache = cached_insns[*head].clone();
67406740
for pred in tail {
6741-
block_cache.retain(|key, value| cached_insns[pred.0 as usize].get(key) == Some(value));
6741+
block_cache.retain(|key, value| cached_insns[*pred].get(key) == Some(value));
67426742
}
67436743

67446744
// If multiple entries contain the same offset, they may alias.

0 commit comments

Comments
 (0)