From d57b7559090266fc0db2616bcfe8286739ee131d Mon Sep 17 00:00:00 2001 From: Oli Scherer Date: Tue, 5 Apr 2022 13:13:21 +0000 Subject: Use WrappingRange::full instead of hand-rolling it --- compiler/rustc_codegen_llvm/src/consts.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/rustc_codegen_llvm/src') diff --git a/compiler/rustc_codegen_llvm/src/consts.rs b/compiler/rustc_codegen_llvm/src/consts.rs index 557e3f47c90..cb4073528e1 100644 --- a/compiler/rustc_codegen_llvm/src/consts.rs +++ b/compiler/rustc_codegen_llvm/src/consts.rs @@ -111,7 +111,7 @@ pub fn const_alloc_to_llvm<'ll>(cx: &CodegenCx<'ll, '_>, alloc: ConstAllocation< ), Scalar::Initialized { value: Primitive::Pointer, - valid_range: WrappingRange { start: 0, end: !0 }, + valid_range: WrappingRange::full(dl.pointer_size), }, cx.type_i8p_ext(address_space), )); -- cgit 1.4.1-3-g733a5