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,h --
clang/test/CIR/CodeGenOpenMP/vtable-no-rtti.cpp
clang/include/clang/CIR/Dialect/IR/CIRDataLayout.h
clang/lib/CIR/CodeGen/CIRGenItaniumCXXABI.cpp
clang/lib/CIR/CodeGen/CIRGenModule.cpp clang/lib/CIR/CodeGen/CIRGenModule.h
clang/lib/CIR/CodeGen/CIRGenVTables.cpp clang/lib/CIR/Dialect/IR/CIRDialect.cpp
clang/lib/CIR/Dialect/Transforms/CIRTransformUtils.cpp
clang/lib/CIR/Dialect/Transforms/EHABILowering.cpp
clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.cpp
clang/test/CIR/CodeGen/cleanup-scope-throw-caught.cpp
clang/test/CIR/CodeGen/cleanup-throw-from-cleanup.cpp
clang/test/CIR/CodeGen/ctor-try-body.cpp
clang/test/CIR/CodeGen/rtti-member-pointer.cpp
clang/test/CIR/CodeGen/rtti-qualfn.cpp
clang/test/CIR/CodeGen/spir-call-calling-conv.cpp
clang/test/CIR/CodeGen/ternary-throw.cpp clang/test/CIR/CodeGen/throws.cpp
clang/test/CIR/CodeGen/try-catch.cpp
clang/test/CIR/CodeGen/virtual-function-calls.cpp
clang/test/CIR/CodeGenCXX/typeid.cpp
clang/test/CIR/CodeGenCoroutines/coro-throw.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/Dialect/IR/CIRDialect.cpp
b/clang/lib/CIR/Dialect/IR/CIRDialect.cpp
index 4f9d57dfc..a6714eb00 100644
--- a/clang/lib/CIR/Dialect/IR/CIRDialect.cpp
+++ b/clang/lib/CIR/Dialect/IR/CIRDialect.cpp
@@ -5086,8 +5086,7 @@ static mlir::LogicalResult verifyThrowOpImpl(ThrowOpTy
op) {
cir::CIRDataLayout dataLayout(module);
auto defaultAddrSpace = dataLayout.getDefaultAddrSpace(op.getContext());
- auto globalAddrSpace =
- dataLayout.getDefaultGlobalsAddrSpace(op.getContext());
+ auto globalAddrSpace =
dataLayout.getDefaultGlobalsAddrSpace(op.getContext());
auto getAddrSpace = [](mlir::Value operand) {
return mlir::cast<cir::PointerType>(operand.getType()).getAddrSpace();
``````````
</details>
https://github.com/llvm/llvm-project/pull/227595
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits