[flang-commits] [flang] [flang][acc] Fix cache directive lowering for derived type designators (PR #176022)
via flang-commits
flang-commits at lists.llvm.org
Wed Jan 14 12:08:47 PST 2026
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 cpp -- flang/lib/Lower/OpenACC.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/Lower/OpenACC.cpp b/flang/lib/Lower/OpenACC.cpp
index 75c4a4e56..7c2fea2a0 100644
--- a/flang/lib/Lower/OpenACC.cpp
+++ b/flang/lib/Lower/OpenACC.cpp
@@ -4928,9 +4928,9 @@ genACC(Fortran::lower::AbstractConverter &converter,
// Try to get shape/typeparams from the defining designate op.
if (auto designate = base.getDefiningOp<hlfir::DesignateOp>()) {
shape = designate.getShape();
- lenParams = llvm::SmallVector<mlir::Value>(
- designate.getTypeparams().begin(),
- designate.getTypeparams().end());
+ lenParams =
+ llvm::SmallVector<mlir::Value>(designate.getTypeparams().begin(),
+ designate.getTypeparams().end());
attrs = designate.getFortranAttrsAttr();
}
auto declareOp = hlfir::DeclareOp::create(
``````````
</details>
https://github.com/llvm/llvm-project/pull/176022
More information about the flang-commits
mailing list