diff options
author | Nikita Popov <npopov@redhat.com> | 2021-12-28 09:14:27 +0100 |
---|---|---|
committer | Nikita Popov <npopov@redhat.com> | 2021-12-28 09:23:28 +0100 |
commit | 30a12f3f6322399185fdceffe176152a58bb84ae (patch) | |
tree | 40ee8af1931d5011ef689fc6703b28883b94737b /llvm/lib/ExecutionEngine/SectionMemoryManager.cpp | |
parent | 7c9fb58cacd3527924e2c9bc8e529c073c8504f8 (diff) | |
download | llvm-30a12f3f6322399185fdceffe176152a58bb84ae.zip llvm-30a12f3f6322399185fdceffe176152a58bb84ae.tar.gz llvm-30a12f3f6322399185fdceffe176152a58bb84ae.tar.bz2 |
[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.
Diffstat (limited to 'llvm/lib/ExecutionEngine/SectionMemoryManager.cpp')
0 files changed, 0 insertions, 0 deletions