Improve global name for anonymous allocations
This commit is contained in:
parent
b73b5799cc
commit
5a931acb48
1 changed files with 1 additions and 1 deletions
|
@ -165,7 +165,7 @@ fn trans_const_place<'a, 'tcx: 'a>(
|
|||
|
||||
fn data_id_for_alloc_id<B: Backend>(module: &mut Module<B>, alloc_id: AllocId) -> DataId {
|
||||
module
|
||||
.declare_data(&alloc_id.0.to_string(), Linkage::Local, false)
|
||||
.declare_data(&format!("__alloc_{}", alloc_id.0), Linkage::Local, false)
|
||||
.unwrap()
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue