File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
flang/lib/Optimizer/Transforms Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -99,12 +99,12 @@ 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
105- rewriter.setInsertionPointToEnd (&scfthenBlock );
106- rewriter.replaceOpWithNewOp <scf::YieldOp>(scfthenTerminator ,
107- scfthenTerminator ->getOperands ());
105+ rewriter.setInsertionPointToEnd (&scfThenBlock );
106+ rewriter.replaceOpWithNewOp <scf::YieldOp>(scfThenTerminator ,
107+ scfThenTerminator ->getOperands ());
108108
109109 // else region
110110 if (!ifOp.getElseRegion ().empty ()) {
You can’t perform that action at this time.
0 commit comments