[flang-commits] [flang] [flang][OpenMP] Mark declare target on use-associated module variables (PR #214596)
via flang-commits
flang-commits at lists.llvm.org
Thu Aug 6 16:49:05 PDT 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/OpenMP/OpenMP.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/OpenMP/OpenMP.cpp b/flang/lib/Lower/OpenMP/OpenMP.cpp
index bf22e998a..d61789617 100644
--- a/flang/lib/Lower/OpenMP/OpenMP.cpp
+++ b/flang/lib/Lower/OpenMP/OpenMP.cpp
@@ -6916,9 +6916,8 @@ void Fortran::lower::genOpenMPDeclarativeConstruct(
/// global and is given internal linkage for the device, replacing the
/// definition with an undefined local copy and silently producing wrong
/// results.
-static void
-markUseAssociatedDeclareTarget(lower::AbstractConverter &converter,
- const lower::pft::Variable &var) {
+static void markUseAssociatedDeclareTarget(lower::AbstractConverter &converter,
+ const lower::pft::Variable &var) {
if (!var.isGlobal())
return;
``````````
</details>
https://github.com/llvm/llvm-project/pull/214596
More information about the flang-commits
mailing list