[PATCH] D136039: [DebugInfo] Fix potential CU mismatch for attachRangesOrLowHighPC

DianQK via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Oct 16 07:51:17 PDT 2022


DianQK created this revision.
Herald added a subscriber: hiraditya.
Herald added a project: All.
DianQK requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

When a CU attaches some ranges for a subprogram or an inlined code, the CU should be that of the subprogram/inlined code that was emitted.
If not, then these emitted ranges will use the incorrect base of the CU in `emitRangeList`.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D136039

Files:
  llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
  llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h
  llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
  llvm/test/DebugInfo/Generic/cross-cu-inlining-ranges.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D136039.468072.patch
Type: text/x-patch
Size: 10964 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221016/74e70d3b/attachment.bin>


More information about the llvm-commits mailing list