about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/builder.rs
diff options
context:
space:
mode:
authorAndreas Liljeqvist <bonega@gmail.com>2021-08-28 11:11:33 +0200
committerAndreas Liljeqvist <bonega@gmail.com>2021-09-09 10:41:18 +0200
commitf5d8749f859fff89b6e37ca4eb6c12a9b0514b87 (patch)
tree752d0f9f65f77c5719d6e3708308c892214cf7b7 /compiler/rustc_codegen_llvm/src/builder.rs
parent021c3346edcd63f88a2137d8abeb2eaa7d445f95 (diff)
downloadrust-f5d8749f859fff89b6e37ca4eb6c12a9b0514b87.tar.gz
rust-f5d8749f859fff89b6e37ca4eb6c12a9b0514b87.zip
Remove `contains_zero`, respect the compiler
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/builder.rs')
-rw-r--r--compiler/rustc_codegen_llvm/src/builder.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_llvm/src/builder.rs b/compiler/rustc_codegen_llvm/src/builder.rs
index 8e7be6bcca1..c7b1a805223 100644
--- a/compiler/rustc_codegen_llvm/src/builder.rs
+++ b/compiler/rustc_codegen_llvm/src/builder.rs
@@ -468,7 +468,7 @@ impl BuilderMethods<'a, 'tcx> for Builder<'a, 'll, 'tcx> {
                         bx.range_metadata(load, &scalar.valid_range);
                     }
                 }
-                abi::Pointer if !scalar.valid_range.contains_zero() => {
+                abi::Pointer if !scalar.valid_range.contains(0) => {
                     bx.nonnull_metadata(load);
                 }
                 _ => {}