Skip to content

Commit ccacbf5

Browse files
committed
chore: patch down the interner
1 parent 9d9c9ba commit ccacbf5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libs/@local/hashql/mir/src/intern.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ use crate::body::{local::Local, operand::Operand, place::Projection};
44

55
#[derive(Debug)]
66
pub struct Interner<'heap> {
7+
pub heap: &'heap Heap,
8+
79
pub locals: InternSet<'heap, [Local]>,
810
pub symbols: InternSet<'heap, [Symbol<'heap>]>,
911
pub operands: InternSet<'heap, [Operand<'heap>]>,
@@ -13,6 +15,8 @@ pub struct Interner<'heap> {
1315
impl<'heap> Interner<'heap> {
1416
pub fn new(heap: &'heap Heap) -> Self {
1517
Self {
18+
heap,
19+
1620
locals: InternSet::new(heap),
1721
symbols: InternSet::new(heap),
1822
operands: InternSet::new(heap),

0 commit comments

Comments
 (0)