[flang-commits] [flang] [flang][OpenMP] fix reduction of arrays with non-default lower bounds (PR #89611)

via flang-commits flang-commits at lists.llvm.org
Tue Apr 23 03:47:35 PDT 2024


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 bc7204811dd20e124fbb8713e652fcf70872b0b3 193b1c6bfa7cdcf10e73e605603f0073ff29db74 -- flang/lib/Lower/OpenMP/ReductionProcessor.cpp
``````````

</details>

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

``````````diff
diff --git a/flang/lib/Lower/OpenMP/ReductionProcessor.cpp b/flang/lib/Lower/OpenMP/ReductionProcessor.cpp
index dda26f3158..895340549f 100644
--- a/flang/lib/Lower/OpenMP/ReductionProcessor.cpp
+++ b/flang/lib/Lower/OpenMP/ReductionProcessor.cpp
@@ -566,8 +566,7 @@ createReductionInitRegion(fir::FirOpBuilder &builder, mlir::Location loc,
     }
 
     // Create the private copy from the initial fir.box:
-    mlir::Value loadedBox =
-        builder.loadIfRef(loc, blockArg);
+    mlir::Value loadedBox = builder.loadIfRef(loc, blockArg);
     hlfir::Entity source = hlfir::Entity{loadedBox};
 
     // Allocating on the heap in case the whole reduction is nested inside of a

``````````

</details>


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


More information about the flang-commits mailing list