about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/builder.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-06-02 08:09:48 +0000
committerbors <bors@rust-lang.org>2023-06-02 08:09:48 +0000
commit507055bc50258f3e2329fb383495f2a6a05a6cd2 (patch)
treea1649a1fd2e4663b8c5d239354674a387a855ae5 /compiler/rustc_codegen_llvm/src/builder.rs
parent47bf8e734f25e1ed65864263a8795f1335d6dce0 (diff)
parentbe4e05a1906d975ac0e09ca1a5ea2daf6a0018a0 (diff)
downloadrust-507055bc50258f3e2329fb383495f2a6a05a6cd2.tar.gz
rust-507055bc50258f3e2329fb383495f2a6a05a6cd2.zip
Auto merge of #2911 - RalfJung:rustup, r=RalfJung
Rustup
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 4d0bcd53d15..5968e70b1cc 100644
--- a/compiler/rustc_codegen_llvm/src/builder.rs
+++ b/compiler/rustc_codegen_llvm/src/builder.rs
@@ -486,7 +486,7 @@ impl<'a, 'll, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'll, 'tcx> {
         assert_eq!(place.llextra.is_some(), place.layout.is_unsized());
 
         if place.layout.is_zst() {
-            return OperandRef::new_zst(self, place.layout);
+            return OperandRef::zero_sized(place.layout);
         }
 
         #[instrument(level = "trace", skip(bx))]