> Of course get_inner_reference looks through these kind of > conversions when returning the ultimate decl in MEM [&foo], > see the jumps in tree-ssa-alias.c we perform to re-discover > the view-converting cases ... (at some point I realized that > this probably wasn't the best design decision). So maybe > if the passed type isn't used in any other way we can > get around and discover the view-convert and use the alias-type > of the MEM_REF ...
But I presume that the regular MEM_REF expander can cope with this case? -- Eric Botcazou