diff options
| author | Tshepang Mbambo <hopsi@tuta.io> | 2025-08-02 00:40:01 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-02 00:40:01 +0200 |
| commit | 171c2478c06da00fb010cc77c333d328410ee796 (patch) | |
| tree | e32965651228b69cc5cf14ad47e7e762c8ed7483 /compiler/rustc_codegen_llvm/src/builder.rs | |
| parent | 219e4c141dd62e8f026312746fe3d7be0569151f (diff) | |
| parent | 7cab27d73ab228be6a1eface8f0cb2f3c3b76c7c (diff) | |
| download | rust-171c2478c06da00fb010cc77c333d328410ee796.tar.gz rust-171c2478c06da00fb010cc77c333d328410ee796.zip | |
Merge pull request #2526 from rust-lang/rustc-pull
Rustc pull update
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/builder.rs')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/builder.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler/rustc_codegen_llvm/src/builder.rs b/compiler/rustc_codegen_llvm/src/builder.rs index 0ade9edb0d2..f712b3b83fa 100644 --- a/compiler/rustc_codegen_llvm/src/builder.rs +++ b/compiler/rustc_codegen_llvm/src/builder.rs @@ -687,10 +687,10 @@ impl<'a, 'll, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'll, 'tcx> { bx.nonnull_metadata(load); } - if let Some(pointee) = layout.pointee_info_at(bx, offset) { - if let Some(_) = pointee.safe { - bx.align_metadata(load, pointee.align); - } + if let Some(pointee) = layout.pointee_info_at(bx, offset) + && let Some(_) = pointee.safe + { + bx.align_metadata(load, pointee.align); } } abi::Primitive::Float(_) => {} |
