Reconstruct locations of the original source variable
This commit is contained in:
committed by
Dan Gohman
parent
d6059d4605
commit
8f95c51730
@@ -151,7 +151,17 @@ fn compute_addr(
|
||||
|
||||
// Convert `offset` to `addr_ty`.
|
||||
if offset_ty != addr_ty {
|
||||
let labels_value = offset;
|
||||
offset = pos.ins().uextend(addr_ty, offset);
|
||||
if let Some(values_labels) = pos.func.dfg.values_labels.as_mut() {
|
||||
values_labels.insert(
|
||||
offset,
|
||||
ir::ValueLabelAssignments::Alias {
|
||||
from: pos.func.srclocs[inst],
|
||||
value: labels_value,
|
||||
},
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
// Add the heap base address base
|
||||
|
||||
Reference in New Issue
Block a user