[flang-commits] [flang] [mlir] [MLIR][LLVM] Make DISubprogramAttr cyclic (PR #106571)

Tobias Gysi via flang-commits flang-commits at lists.llvm.org
Fri Aug 30 12:52:36 PDT 2024


================
@@ -221,14 +222,14 @@ DICompositeTypeAttr::getRecSelf(DistinctAttr recId) {
 
 DIRecursiveTypeAttrInterface DISubprogramAttr::withRecId(DistinctAttr recId) {
   return DISubprogramAttr::get(
-      getContext(), getId(), recId, getCompileUnit(), getScope(), getName(),
-      getLinkageName(), getFile(), getLine(), getScopeLine(),
-      getSubprogramFlags(), getType(), getRetainedNodes());
+      getContext(), recId, /*isRecSelf=*/false, getId(), getCompileUnit(),
----------------
gysit wrote:

Ah right. Makes sense!

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


More information about the flang-commits mailing list