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,c --
clang/test/OpenMP/target_update_strided_ptr_variable_count_and_stride_messages.c
clang/test/OpenMP/target_update_strided_ptr_variable_count_messages.c
clang/test/OpenMP/target_update_strided_ptr_variable_stride_messages.c
clang/test/OpenMP/target_update_strided_struct_variable_count_and_stride_messages.c
clang/test/OpenMP/target_update_variable_count_and_stride_messages.c
offload/test/offloading/strided_update_count_expression.c
offload/test/offloading/strided_update_count_expression_complex.c
offload/test/offloading/strided_update_count_expression_misc.c
offload/test/offloading/strided_update_multiple_arrays_count_expression.c
offload/test/offloading/strided_update_multiple_arrays_variable_stride.c
offload/test/offloading/strided_update_variable_count_and_stride.c
offload/test/offloading/strided_update_variable_stride.c
offload/test/offloading/strided_update_variable_stride_complex.c
offload/test/offloading/strided_update_variable_stride_misc.c
offload/test/offloading/target_update_ptr_count_expression.c
offload/test/offloading/target_update_ptr_variable_count_and_stride.c
offload/test/offloading/target_update_ptr_variable_stride.c
offload/test/offloading/target_update_strided_struct_count_expression.c
offload/test/offloading/target_update_strided_struct_variable_count_and_stride.c
offload/test/offloading/target_update_strided_struct_variable_stride.c
clang/lib/CodeGen/CGOpenMPRuntime.cpp llvm/lib/Frontend/OpenMP/OMPIRBuilder.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/clang/lib/CodeGen/CGOpenMPRuntime.cpp
b/clang/lib/CodeGen/CGOpenMPRuntime.cpp
index 027d1fb26..e6f5f00a8 100644
--- a/clang/lib/CodeGen/CGOpenMPRuntime.cpp
+++ b/clang/lib/CodeGen/CGOpenMPRuntime.cpp
@@ -8033,9 +8033,9 @@ private:
const Expr *StrideExpr = OASE->getStride();
if (!StrideExpr)
return false;
-
+
assert(StrideExpr->getType()->isIntegerType() &&
- "Stride expression must be of integer type");
+ "Stride expression must be of integer type");
// If the stride is a variable (not a constant), it's non-contiguous.
const Expr *S = StrideExpr->IgnoreParenImpCasts();
diff --git a/llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
b/llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
index 578e63351..6f44a9649 100644
--- a/llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
+++ b/llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
@@ -9776,8 +9776,8 @@ Error OpenMPIRBuilder::emitOffloadingArrays(
bool IsNonContigEntry =
IsNonContiguous &&
(static_cast<std::underlying_type_t<OpenMPOffloadMappingFlags>>(
- CombinedInfo.Types[I] &
- OpenMPOffloadMappingFlags::OMP_MAP_NON_CONTIG) != 0);
+ CombinedInfo.Types[I] &
+ OpenMPOffloadMappingFlags::OMP_MAP_NON_CONTIG) != 0);
// For NON_CONTIG entries ArgSizes must carry the dimension count
// (number of descriptor_dim records) – NOT the byte size expression.
// Variable subsection forms (e.g. 0:s.len/2:2) previously produced a
``````````
</details>
https://github.com/llvm/llvm-project/pull/176708
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits