[flang-commits] [flang] [flang][OpenMP] fix lastprivate for allocatables (PR #99686)
via flang-commits
flang-commits at lists.llvm.org
Sat Jul 20 06:41:06 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 a8b90c835291df9a6c152fd32de666192aa0da77 37839abcebfd22e7ffbcd94dd65f58e6130bc37e --extensions cpp -- flang/lib/Lower/OpenMP/DataSharingProcessor.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/flang/lib/Lower/OpenMP/DataSharingProcessor.cpp b/flang/lib/Lower/OpenMP/DataSharingProcessor.cpp
index a8f2cac999..7e76a81e0d 100644
--- a/flang/lib/Lower/OpenMP/DataSharingProcessor.cpp
+++ b/flang/lib/Lower/OpenMP/DataSharingProcessor.cpp
@@ -166,7 +166,8 @@ void DataSharingProcessor::copyLastPrivateSymbol(
hlfir::Entity src{sb.getAddr()};
builder.create<hlfir::AssignOp>(
loc, src, dst, /*isWholeAllocatableAssignment=*/allocatable,
- /*keepLhsLengthInAllocatableAssignment=*/false, /*temporary_lhs=*/false);
+ /*keepLhsLengthInAllocatableAssignment=*/false,
+ /*temporary_lhs=*/false);
if (lastPrivIP && lastPrivIP->isSet() &&
sym->test(Fortran::semantics::Symbol::Flag::OmpLastPrivate)) {
``````````
</details>
https://github.com/llvm/llvm-project/pull/99686
More information about the flang-commits
mailing list