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 h,c,cpp -- 
clang/test/CIR/CodeGen/builtin-memcpy.c clang/lib/CIR/CodeGen/CIRGenAtomic.cpp 
clang/lib/CIR/CodeGen/CIRGenBuilder.h clang/lib/CIR/CodeGen/CIRGenBuiltin.cpp 
clang/lib/CIR/CodeGen/CIRGenExprAggregate.cpp 
clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.cpp 
clang/test/CIR/CodeGen/assign-operator.cpp clang/test/CIR/CodeGen/atomic.c 
clang/test/CIR/CodeGen/libc.c 
clang/test/CIR/CodeGen/union-copy-move-assignment.cpp 
clang/test/CIR/CodeGenBuiltins/builtin-bit-cast.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/CIR/CodeGen/CIRGenBuiltin.cpp 
b/clang/lib/CIR/CodeGen/CIRGenBuiltin.cpp
index 4dc978320..0443d8ade 100644
--- a/clang/lib/CIR/CodeGen/CIRGenBuiltin.cpp
+++ b/clang/lib/CIR/CodeGen/CIRGenBuiltin.cpp
@@ -2388,8 +2388,7 @@ RValue CIRGenFunction::emitBuiltinExpr(const GlobalDecl 
&gd, unsigned builtinID,
     if (builtinID == Builtin::BImempcpy ||
         builtinID == Builtin::BI__builtin_mempcpy) {
       mlir::Value destPtr = destCast.getPointer();
-      mlir::Value end =
-          builder.createPtrStride(loc, destPtr, sizeVal);
+      mlir::Value end = builder.createPtrStride(loc, destPtr, sizeVal);
       return RValue::get(end);
     }
     return RValue::get(dest.getPointer());

``````````

</details>


https://github.com/llvm/llvm-project/pull/225845
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to