[flang-commits] [flang] [flang][debug] Generate DWARF debug info using fir.use_stmt. (PR #168541)
via flang-commits
flang-commits at lists.llvm.org
Tue Nov 18 06:20:54 PST 2025
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff origin/main HEAD --extensions h,cpp -- flang/include/flang/Semantics/scope.h flang/lib/Lower/Bridge.cpp flang/lib/Optimizer/CodeGen/CodeGen.cpp flang/lib/Optimizer/Transforms/AddDebugInfo.cpp flang/lib/Semantics/resolve-names.cpp --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/flang/lib/Optimizer/Transforms/AddDebugInfo.cpp b/flang/lib/Optimizer/Transforms/AddDebugInfo.cpp
index 6a74b8caa..e6b2cf69f 100644
--- a/flang/lib/Optimizer/Transforms/AddDebugInfo.cpp
+++ b/flang/lib/Optimizer/Transforms/AddDebugInfo.cpp
@@ -555,7 +555,8 @@ void AddDebugInfoPass::handleFuncOp(mlir::func::FuncOp funcOp,
}
}
- // Use same 'id' for both placeholder and final - recId handles the recursion
+ // Use same 'id' for both placeholder and final - recId handles the
+ // recursion
spAttr = mlir::LLVM::DISubprogramAttr::get(
context, recId, /*isRecSelf=*/false, id, compilationUnit, Scope, name,
name, funcFileAttr, line, line, flags, spTy, opEntities,
``````````
</details>
https://github.com/llvm/llvm-project/pull/168541
More information about the flang-commits
mailing list