[flang-commits] [flang] [flang][debug] Generate DISubprogramAttr for omp::TargetOp. (PR #138039)
via flang-commits
flang-commits at lists.llvm.org
Tue May 20 04:23:21 PDT 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 HEAD~1 HEAD --extensions cpp -- flang/lib/Optimizer/Transforms/AddDebugInfo.cpp
``````````
</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 20e890713..0f319ff55 100644
--- a/flang/lib/Optimizer/Transforms/AddDebugInfo.cpp
+++ b/flang/lib/Optimizer/Transforms/AddDebugInfo.cpp
@@ -479,7 +479,8 @@ void AddDebugInfoPass::handleFuncOp(mlir::func::FuncOp funcOp,
}
auto addTargetOpDISP = [&](bool lineTableOnly,
- const llvm::SmallVector<mlir::LLVM::DINodeAttr> &entities) {
+ const llvm::SmallVector<mlir::LLVM::DINodeAttr>
+ &entities) {
// When we process the DeclareOp inside the OpenMP target region, all the
// variables get the DISubprogram of the parent function of the target op as
// the scope. In the codegen (to llvm ir), OpenMP target op results in the
``````````
</details>
https://github.com/llvm/llvm-project/pull/138039
More information about the flang-commits
mailing list