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
- rL LLVM
Event Timeline
lib/CodeGen/CGOpenMPRuntime.cpp | ||
---|---|---|
1110 ↗ | (On Diff #125765) | Better to use SharedAddresses[N].first.getAddress().getType() |
lib/CodeGen/CGOpenMPRuntime.cpp | ||
---|---|---|
1110 ↗ | (On Diff #125765) | Ok, was copied from below call to castToBase(). Should I adjust it there as well? |
lib/CodeGen/CGOpenMPRuntime.cpp | ||
---|---|---|
1110 ↗ | (On Diff #125765) | Yes, please |