about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorAndreas Liljeqvist <bonega@gmail.com>2021-08-23 14:24:34 +0200
committerAndreas Liljeqvist <bonega@gmail.com>2021-08-23 14:24:34 +0200
commite8e6d9bd86c9cf685666718ca99e016275e1751b (patch)
treee1980c954d4e2966fd869a24a070dfc0532bfcbe /compiler/rustc_codegen_llvm/src
parent70433955f4531f2742ddeb986e6ac19a8fd4792f (diff)
downloadrust-e8e6d9bd86c9cf685666718ca99e016275e1751b.tar.gz
rust-e8e6d9bd86c9cf685666718ca99e016275e1751b.zip
Rename to WrappingRange
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
-rw-r--r--compiler/rustc_codegen_llvm/src/consts.rs7
1 files changed, 2 insertions, 5 deletions
diff --git a/compiler/rustc_codegen_llvm/src/consts.rs b/compiler/rustc_codegen_llvm/src/consts.rs
index 01a93dd8857..ec92bd686d2 100644
--- a/compiler/rustc_codegen_llvm/src/consts.rs
+++ b/compiler/rustc_codegen_llvm/src/consts.rs
@@ -17,7 +17,7 @@ use rustc_middle::mir::mono::MonoItem;
 use rustc_middle::ty::{self, Instance, Ty};
 use rustc_middle::{bug, span_bug};
 use rustc_target::abi::{
-    AddressSpace, Align, AllocationRange, HasDataLayout, LayoutOf, Primitive, Scalar, Size,
+    AddressSpace, Align, HasDataLayout, LayoutOf, Primitive, Scalar, Size, WrappingRange,
 };
 use tracing::debug;
 
@@ -61,10 +61,7 @@ pub fn const_alloc_to_llvm(cx: &CodegenCx<'ll, '_>, alloc: &Allocation) -> &'ll
                 Pointer::new(alloc_id, Size::from_bytes(ptr_offset)),
                 &cx.tcx,
             ),
-            &Scalar {
-                value: Primitive::Pointer,
-                valid_range: AllocationRange { start: 0, end: !0 },
-            },
+            &Scalar { value: Primitive::Pointer, valid_range: WrappingRange { start: 0, end: !0 } },
             cx.type_i8p_ext(address_space),
         ));
         next_offset = offset + pointer_size;