diff options
| author | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2025-05-30 10:04:35 +0000 |
|---|---|---|
| committer | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2025-05-30 10:12:57 +0000 |
| commit | 284bec542816487b93126118f6f0d6616499ea4f (patch) | |
| tree | 8deabea3486624dd6d1a8e18982eeaa7c555b0d5 /compiler/rustc_codegen_llvm/src | |
| parent | 0fcea3db28ad738ae2fe8c0cf871450d8492e5b0 (diff) | |
| download | rust-284bec542816487b93126118f6f0d6616499ea4f.tar.gz rust-284bec542816487b93126118f6f0d6616499ea4f.zip | |
Directly use from_immediate for handling bool
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/intrinsic.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/compiler/rustc_codegen_llvm/src/intrinsic.rs b/compiler/rustc_codegen_llvm/src/intrinsic.rs index 30a924ef158..989752eb78e 100644 --- a/compiler/rustc_codegen_llvm/src/intrinsic.rs +++ b/compiler/rustc_codegen_llvm/src/intrinsic.rs @@ -610,9 +610,8 @@ impl<'ll, 'tcx> IntrinsicCallBuilderMethods<'tcx> for Builder<'_, 'll, 'tcx> { }; if result.layout.ty.is_bool() { - OperandRef::from_immediate_or_packed_pair(self, llval, result.layout) - .val - .store(self, result); + let val = self.from_immediate(llval); + self.store_to_place(val, result.val); } else if !result.layout.ty.is_unit() { self.store_to_place(llval, result.val); } |
