[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.
parent
7c9fb58c
Please register or sign in to comment