[InstCombine] Fix GEP with same index comparison with opaque pointers
We need to also check that the source element type is the same, otherwise the indices may have different meaning. The added addrspacecast demonstrates that we do still need to check the pointer type.
Loading
Please sign in to comment