[llvm] [DebugInfo] Update DebugInfoFinder to take retainedNodes into account (PR #140285)

Vladislav Dzhidzhoev via llvm-commits llvm-commits at lists.llvm.org
Mon May 19 08:54:11 PDT 2025


================
@@ -350,10 +354,15 @@ void DebugInfoFinder::processSubprogram(DISubprogram *SP) {
       processType(TVal->getType());
     }
   }
+
+  for (auto *N : SP->getRetainedNodes())
+    if (auto *Var = dyn_cast_or_null<DILocalVariable>(N))
+      processVariable(Var);
+    else if (auto *Import = dyn_cast_or_null<DIImportedEntity>(N))
+      processImportedEntity(Import);
----------------
dzhidzhoev wrote:

Fixed.

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


More information about the llvm-commits mailing list