The size of the field depends on the DWARF format, not the address size of the target.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
LGTM. I'm rather surprised this hasn't been picked up before now, given it would generate invalid debug information. Perhaps this indicates the option is never used?
Comment Actions
The problematic code path is performed only when generating .debug_pub* or .debug_aranges sections when the option is set to Enabled, but as it was stated in D43943, where the option was added, it was intended only for cases, when these sections are omitted/ignored. Nevertheless, the common code should be correct as its usage might be extended in the future.