stage2: Properly "flatten" elem_ptrs before deref

Sema.pointerDeref() assumes that elem_ptrs have been "flattened" when
they were created, so that you an elem_ptr will never be the array_ptr
of another elem_ptr when they share the same type.

Value.elemPtr does this already, but a couple of places in Sema were
bypassing this logic.
1c22381909Cody Tapscott committed on 3/23/2022, 8:44:31 PM· committed by Andrew Kelleyparentb872539
1 file changedLine totals unavailable