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,cpp -- 
clang/test/CIR/CodeGen/builtin-object-size.cpp 
clang/include/clang/CIR/MissingFeatures.h 
clang/lib/CIR/CodeGen/CIRGenBuiltin.cpp clang/lib/CIR/CodeGen/CIRGenFunction.h 
clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.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 6617895fa..a1d280d5c 100644
--- a/clang/lib/CIR/CodeGen/CIRGenBuiltin.cpp
+++ b/clang/lib/CIR/CodeGen/CIRGenBuiltin.cpp
@@ -675,7 +675,7 @@ mlir::Value CIRGenFunction::emitBuiltinObjectSize(const 
Expr *e, unsigned type,
   // lowering, we shouldn't lower to `cir.objsize`.
   if (type == 3 || (!emittedE && e->HasSideEffects(getContext())))
     return builder.getConstInt(getLoc(e->getSourceRange()), resType,
-                                (type & 2) ? 0 : -1);
+                               (type & 2) ? 0 : -1);
 
   mlir::Value ptr = emittedE ? emittedE : emitScalarExpr(e);
   assert(mlir::isa<cir::PointerType>(ptr.getType()) &&
diff --git a/clang/lib/CIR/CodeGen/CIRGenFunction.h 
b/clang/lib/CIR/CodeGen/CIRGenFunction.h
index 3d3d4fa41..115fa6dba 100644
--- a/clang/lib/CIR/CodeGen/CIRGenFunction.h
+++ b/clang/lib/CIR/CodeGen/CIRGenFunction.h
@@ -1305,12 +1305,14 @@ public:
                          const clang::CallExpr *e, ReturnValueSlot 
returnValue);
 
   mlir::Value emitBuiltinObjectSize(const clang::Expr *e, unsigned type,
-                                     cir::IntType resType, mlir::Value 
emittedE,
-                                     bool isDynamic);
+                                    cir::IntType resType, mlir::Value emittedE,
+                                    bool isDynamic);
 
   mlir::Value evaluateOrEmitBuiltinObjectSize(const clang::Expr *e,
-                                               unsigned type, cir::IntType 
resType,
-                                               mlir::Value emittedE, bool 
isDynamic);
+                                              unsigned type,
+                                              cir::IntType resType,
+                                              mlir::Value emittedE,
+                                              bool isDynamic);
 
   RValue emitCall(const CIRGenFunctionInfo &funcInfo,
                   const CIRGenCallee &callee, ReturnValueSlot returnValue,

``````````

</details>


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

Reply via email to