[clang] [CIR] Fold ComplexRealOp from ComplexCreateOp (PR #147592)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 9 09:31:22 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 -- clang/lib/CIR/Dialect/IR/CIRDialect.cpp
``````````
</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 191f1648e..4ffe2a8d1 100644
--- a/clang/lib/CIR/Dialect/IR/CIRDialect.cpp
+++ b/clang/lib/CIR/Dialect/IR/CIRDialect.cpp
@@ -2066,8 +2066,8 @@ LogicalResult cir::ComplexRealOp::verify() {
}
OpFoldResult cir::ComplexRealOp::fold(FoldAdaptor adaptor) {
- if (auto complexCreateOp = dyn_cast_or_null<cir::ComplexCreateOp>(
- getOperand().getDefiningOp()))
+ if (auto complexCreateOp =
+ dyn_cast_or_null<cir::ComplexCreateOp>(getOperand().getDefiningOp()))
return complexCreateOp.getOperand(0);
auto complex =
``````````
</details>
https://github.com/llvm/llvm-project/pull/147592
More information about the cfe-commits
mailing list