Skip to content

Commit 2cc56a0

Browse files
StarryCSFvzakhari
andauthored
Update flang/lib/Optimizer/Transforms/FIRToSCF.cpp
Co-authored-by: Slava Zakharin <[email protected]>
1 parent d2f6685 commit 2cc56a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

flang/lib/Optimizer/Transforms/FIRToSCF.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ struct IfConversion : public OpRewritePattern<fir::IfOp> {
9999
loc, resultTypes, condition, !ifOp.getElseRegion().empty());
100100
// then region
101101
scfIfOp.getThenRegion().takeBody(ifOp.getThenRegion());
102-
Block &scfthenBlock = scfIfOp.getThenRegion().front();
103-
Operation *scfthenTerminator = scfthenBlock.getTerminator();
102+
Block &scfThenBlock = scfIfOp.getThenRegion().front();
103+
Operation *scfThenTerminator = scfThenBlock.getTerminator();
104104
// fir.result->scf.yield
105105
rewriter.setInsertionPointToEnd(&scfthenBlock);
106106
rewriter.replaceOpWithNewOp<scf::YieldOp>(scfthenTerminator,

0 commit comments

Comments
 (0)