[Mlir-commits] [mlir] [MLIR][LLVM] Support Recursive DITypes (PR #80251)

Tobias Gysi llvmlistbot at llvm.org
Sun Mar 10 08:48:03 PDT 2024


================
@@ -289,7 +317,18 @@ DINodeAttr DebugImporter::translate(llvm::DINode *node) {
     return nullptr;
   };
   if (DINodeAttr attr = translateNode(node)) {
-    nodeToAttr.insert({node, attr});
+    // If this node was marked as recursive, set its recId.
+    if (auto recType = dyn_cast<DIRecursiveTypeAttrInterface>(attr)) {
+      if (DistinctAttr id = translationStack.lookup(node)) {
----------------
gysit wrote:

```suggestion
      if (DistinctAttr recId = translationStack.lookup(node)) {
```
ultra nit:

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


More information about the Mlir-commits mailing list