The code seemed not to account for the field 1 offset. This patch hopefully fixes that issue.
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
I *think* this is looking good, but I'd like a second pair of eyes from @jrtc27 as I know she's fixed bugs around this area recently too. We would like to have this ready for 11.0.1 if possible.
clang/lib/CodeGen/TargetInfo.cpp | ||
---|---|---|
10603 | Please may you update this name to reflect what it really is - the offset of the *end* of Field1, rather than its size. This code is complex enough without confusing names. :) |
Seems good other than additional comments regarding code clarity.
clang/lib/CodeGen/TargetInfo.cpp | ||
---|---|---|
10577 | This NFC hunk definitely makes this clearer :) | |
10603 | +1 to Field1End or similar | |
10604–10605 | Swapping the order of the operands would be the more natural way to express this. |
This NFC hunk definitely makes this clearer :)