[PATCH] D147620: [DebugInfo] Keep the CU consistent for operating `DISubprogram`.

DianQK via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 27 05:25:27 PDT 2023


DianQK added a comment.

I have a curiosity.
Can we change `DIE *ContextDIE = Minimal ? &getUnitDie() : getOrCreateContextDIE(SP->getScope());` to `  DIE *ContextDIE = &getUnitDie();`.
I understand that this code tends to select `scope`. Then switch to `unit` if it has a declaration.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D147620/new/

https://reviews.llvm.org/D147620



More information about the llvm-commits mailing list