s/alloc_type/alloc_kind/
This commit is contained in:
parent
2e00d648c0
commit
d6250191a6
3 changed files with 11 additions and 11 deletions
|
@ -316,8 +316,8 @@ impl ConstMethods<'tcx> for CodegenCx<'ll, 'tcx> {
|
|||
}
|
||||
},
|
||||
Scalar::Ptr(ptr) => {
|
||||
let alloc_type = self.tcx.alloc_map.lock().get(ptr.alloc_id);
|
||||
let base_addr = match alloc_type {
|
||||
let alloc_kind = self.tcx.alloc_map.lock().get(ptr.alloc_id);
|
||||
let base_addr = match alloc_kind {
|
||||
Some(AllocKind::Memory(alloc)) => {
|
||||
let init = const_alloc_to_llvm(self, alloc);
|
||||
if alloc.mutability == Mutability::Mutable {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue