[flang-commits] [flang] [flang][acc] Avoid implicitly privatizing IVs already privatized (PR #136181)

via flang-commits flang-commits at lists.llvm.org
Thu Apr 17 11:59:26 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/Lower/OpenACC.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/flang/lib/Lower/OpenACC.cpp b/flang/lib/Lower/OpenACC.cpp
index a328fb345..c4f2e27f6 100644
--- a/flang/lib/Lower/OpenACC.cpp
+++ b/flang/lib/Lower/OpenACC.cpp
@@ -1804,7 +1804,7 @@ static void privatizeIv(Fortran::lower::AbstractConverter &converter,
     builder.restoreInsertionPoint(insPt);
   }
 
-  mlir::Operation* privateOp = nullptr;
+  mlir::Operation *privateOp = nullptr;
   for (auto privateVal : privateOperands) {
     if (mlir::acc::getVar(privateVal.getDefiningOp()) == ivValue) {
       privateOp = privateVal.getDefiningOp();

``````````

</details>


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


More information about the flang-commits mailing list