The adjustment is calculated with CreatePtrDiff() which returns
the difference in (base) elements. This is passed to CreateGEP()
so make sure that the GEP base has the correct pointer type:
It needs to be a pointer to the base type, not a pointer to a
constant sized array.
Details
Details
Diff Detail
Diff Detail
- Repository
- rC Clang
Better to use SharedAddresses[N].first.getAddress().getType()