Skip to content
Commit 30a12f3f authored by Nikita Popov's avatar Nikita Popov
Browse files

[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
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment