1. ast::Mutability::{Mutable -> Mut, Immutable -> Not}.
2. mir::Mutability -> ast::Mutability.
This commit is contained in:
parent
01a46509a4
commit
a7aec3f207
91 changed files with 292 additions and 319 deletions
|
@ -277,7 +277,7 @@ impl ConstMethods<'tcx> for CodegenCx<'ll, 'tcx> {
|
|||
let base_addr = match alloc_kind {
|
||||
Some(GlobalAlloc::Memory(alloc)) => {
|
||||
let init = const_alloc_to_llvm(self, alloc);
|
||||
if alloc.mutability == Mutability::Mutable {
|
||||
if alloc.mutability == Mutability::Mut {
|
||||
self.static_addr_of_mut(init, alloc.align, None)
|
||||
} else {
|
||||
self.static_addr_of(init, alloc.align, None)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue