[Openmp-commits] [openmp] [OpenMP][NFC] Fix -Wsign-compare warning in kmp_collapse.cpp (PR #137487)

via Openmp-commits openmp-commits at lists.llvm.org
Sat Apr 26 19:59:20 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 -- openmp/runtime/src/kmp_collapse.cpp
``````````

</details>

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

``````````diff
diff --git a/openmp/runtime/src/kmp_collapse.cpp b/openmp/runtime/src/kmp_collapse.cpp
index ed4b521d9..6d79eb17a 100644
--- a/openmp/runtime/src/kmp_collapse.cpp
+++ b/openmp/runtime/src/kmp_collapse.cpp
@@ -1314,7 +1314,8 @@ kmp_identify_nested_loop_structure(/*in*/ bounds_info_t *original_bounds_nest,
                                         original_bounds_nest[1].ub1_u64);
   // lower triangle loop inner bounds need to be {0,0}:{0/-1,1}
   if (inner_lb0_u64 == 0 && inner_lb1_u64 == 0 &&
-      (inner_ub0_u64 == 0 || inner_ub0_u64 == (kmp_uint64)-1) && inner_ub1_u64 == 1) {
+      (inner_ub0_u64 == 0 || inner_ub0_u64 == (kmp_uint64)-1) &&
+      inner_ub1_u64 == 1) {
     return nested_loop_type_lower_triangular_matrix;
   }
   // upper triangle loop inner bounds need to be {0,1}:{N,0}

``````````

</details>


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


More information about the Openmp-commits mailing list