1
Fork 0

cleanup misinformation regarding has_deref

This commit is contained in:
ouz-a 2023-08-05 12:02:39 +03:00
parent 5cbfee5455
commit 6df546281b
7 changed files with 23 additions and 17 deletions

View file

@ -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,