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

Billy Zhu llvmlistbot at llvm.org
Thu Aug 29 10:54:05 PDT 2024


================
@@ -76,8 +76,8 @@ static void addScopeToFunction(LLVM::LLVMFuncOp llvmFunc,
     compileUnitAttr = {};
   }
   auto subprogramAttr = LLVM::DISubprogramAttr::get(
-      context, id, compileUnitAttr, fileAttr, funcNameAttr, funcNameAttr,
-      fileAttr,
+      context, id, /*recId=*/{}, compileUnitAttr, fileAttr, funcNameAttr,
+      funcNameAttr, fileAttr,
----------------
zyx-billy wrote:

tiny nit: Can convert to the simpler builder and omit `context` and `recId`?

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


More information about the Mlir-commits mailing list