diff options
| author | ouz-a <ouz.agz@gmail.com> | 2023-08-05 12:02:39 +0300 |
|---|---|---|
| committer | ouz-a <ouz.agz@gmail.com> | 2023-08-06 17:29:09 +0300 |
| commit | 6df546281bf8ffc39df9430aa1717656dfbbcf7a (patch) | |
| tree | 77e40ef59a433458f0b7de5f916b48349285ee1d /compiler/rustc_codegen_ssa/src | |
| parent | 5cbfee545543a8e3d91c54997c6bcd24d2054321 (diff) | |
| download | rust-6df546281bf8ffc39df9430aa1717656dfbbcf7a.tar.gz rust-6df546281bf8ffc39df9430aa1717656dfbbcf7a.zip | |
cleanup misinformation regarding has_deref
Diffstat (limited to 'compiler/rustc_codegen_ssa/src')
| -rw-r--r-- | compiler/rustc_codegen_ssa/src/mir/place.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_ssa/src/mir/place.rs b/compiler/rustc_codegen_ssa/src/mir/place.rs index 64c6d17469b..e7c3906d977 100644 --- a/compiler/rustc_codegen_ssa/src/mir/place.rs +++ b/compiler/rustc_codegen_ssa/src/mir/place.rs @@ -441,7 +441,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> { LocalRef::Place(place) => place, LocalRef::UnsizedPlace(place) => bx.load_operand(place).deref(cx), LocalRef::Operand(..) => { - if place_ref.has_deref() { + if place_ref.is_indirect_first_projection() { base = 1; let cg_base = self.codegen_consume( bx, |
