Why not call get_base_address? That's the standard way of getting
the
pointer out of an INDIRECT_REF. Assuming that the INDIRECT_REF is
already gimplified, of course.
I didn't say it was hard, just that it wasn't *trivial*, so it's not
clear you want to have the code explicitly everywhere.
I still think that it is a mistake adding ADDR_EXPR <INDIRECT_REF
<>>
to GIMPLE.
I agree, but that's not what was being done here. We're allowing it
on a transitory basis knowing that we're about to fold it away.