[flang-commits] [flang] [flang][fir] Add fir.if -> scf.if and add filecheck test file (PR #142938)
via flang-commits
flang-commits at lists.llvm.org
Thu Jun 5 05:20:59 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 -- flang/lib/Optimizer/Transforms/FIRToSCF.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/flang/lib/Optimizer/Transforms/FIRToSCF.cpp b/flang/lib/Optimizer/Transforms/FIRToSCF.cpp
index fa9bba390..efa0a808d 100644
--- a/flang/lib/Optimizer/Transforms/FIRToSCF.cpp
+++ b/flang/lib/Optimizer/Transforms/FIRToSCF.cpp
@@ -98,7 +98,7 @@ struct IfConversion : public OpRewritePattern<fir::IfOp> {
bool hasResult = !resultTypes.empty();
auto scfIfOp = rewriter.create<scf::IfOp>(loc, resultTypes, condition,
!ifOp.getElseRegion().empty());
- // then region
+ // then region
assert(!ifOp.getThenRegion().empty() && "must have then region");
auto &firThenBlock = ifOp.getThenRegion().front();
auto &scfThenBlock = scfIfOp.getThenRegion().front();
``````````
</details>
https://github.com/llvm/llvm-project/pull/142938
More information about the flang-commits
mailing list