about summary refs log tree commit diff
path: root/compiler/rustc_codegen_cranelift/src
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2022-08-27 14:11:19 -0400
committerRalf Jung <post@ralfj.de>2022-08-27 14:11:19 -0400
commite63a6257118effd270223ae38306013dfd477516 (patch)
tree618e4d93af0c7ef89d1a7f64568751e92de36d3a /compiler/rustc_codegen_cranelift/src
parent332cc8fb752fe98c21837ed6f3571f6adb0d08b8 (diff)
downloadrust-e63a6257118effd270223ae38306013dfd477516.tar.gz
rust-e63a6257118effd270223ae38306013dfd477516.zip
interpret: rename relocation → provenance
Diffstat (limited to 'compiler/rustc_codegen_cranelift/src')
-rw-r--r--compiler/rustc_codegen_cranelift/src/constant.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_cranelift/src/constant.rs b/compiler/rustc_codegen_cranelift/src/constant.rs
index 7f7fd0e9c57..4f153113932 100644
--- a/compiler/rustc_codegen_cranelift/src/constant.rs
+++ b/compiler/rustc_codegen_cranelift/src/constant.rs
@@ -430,7 +430,7 @@ fn define_all_allocs(tcx: TyCtxt<'_>, module: &mut dyn Module, cx: &mut Constant
         let bytes = alloc.inspect_with_uninit_and_ptr_outside_interpreter(0..alloc.len()).to_vec();
         data_ctx.define(bytes.into_boxed_slice());
 
-        for &(offset, alloc_id) in alloc.relocations().iter() {
+        for &(offset, alloc_id) in alloc.provenance().iter() {
             let addend = {
                 let endianness = tcx.data_layout.endian;
                 let offset = offset.bytes() as usize;