[PATCH] D124892: [DWARF] Fix split dwarf debug inlining in mix mode situation.

Alexander Yermolovich via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 3 18:09:35 PDT 2022


ayermolo created this revision.
Herald added subscribers: hoy, modimo, wenlei, hiraditya.
Herald added a project: All.
ayermolo requested review of this revision.
Herald added a reviewer: jdoerfert.
Herald added subscribers: llvm-commits, sstefan1.
Herald added a project: LLVM.

With ThinLTO enabled we can have a function in a CU that doesn't have split
dwarf inlining enabled that gets inlined into CU that has it enabled.
When we try to lookup Abstract Scope Die for the inlined scope in
constructInlinedScopeDIE, it's not present and we assert.

Not 100% sure this is a correct place to fix it. Open to suggestions.
Test Plan:


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D124892

Files:
  llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
  llvm/test/DebugInfo/Inputs/mixDebugInliingHelper.ll
  llvm/test/DebugInfo/Inputs/mixDebugInliingMain.ll
  llvm/test/DebugInfo/X86/mixDebugInliing.test

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D124892.426884.patch
Type: text/x-patch
Size: 8998 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220504/3e636e7e/attachment.bin>


More information about the llvm-commits mailing list