Skip to content

Commit ca05b0a

Browse files
committed
add some tracing to intptrcast
1 parent db2499c commit ca05b0a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/intptrcast.rs

+4
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,10 @@ impl<'mir, 'tcx> GlobalState {
9090
// From next_base_addr + slack, round up to adjust for alignment.
9191
let base_addr = Self::align_addr(global_state.next_base_addr + slack, align.bytes());
9292
entry.insert(base_addr);
93+
trace!(
94+
"Assigning base address {:#x} to allocation {:?} (slack: {}, align: {})",
95+
base_addr, ptr.alloc_id, slack, align.bytes(),
96+
);
9397

9498
// Remember next base address. If this allocation is zero-sized, leave a gap
9599
// of at least 1 to avoid two allocations having the same base address.

0 commit comments

Comments
 (0)