[llvm] [DebugInfo] Swap 'Unit' and 'Type' positions in DISubprogram. (PR #96474)

Jeremy Morse via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 24 06:11:12 PDT 2024


jmorse wrote:

As far as I understand this patch, it's swapping which field of a DISubprogram the data is stored in, and all the accessors are updated, so this patch should be transparent to any code using the accessors.

Thus, surely the problem is caused by code that directly accesses the fields of DISubprogram and is exposed to their ordering -- shouldn't such code instead examine fields in a logical manner rather than the order of storage?

https://github.com/llvm/llvm-project/pull/96474


More information about the llvm-commits mailing list