[fir][NFC] Remove unused variable

This commit is contained in:
Valentin Clement 2021-10-13 01:37:56 -07:00
parent e67cbbef03
commit 665970d421
No known key found for this signature in database
GPG Key ID: 086D54783C928776
1 changed files with 2 additions and 10 deletions

View File

@ -137,8 +137,7 @@ public:
using OpRewritePattern::OpRewritePattern;
CfgIfConv(mlir::MLIRContext *ctx, bool forceLoopToExecuteOnce)
: mlir::OpRewritePattern<fir::IfOp>(ctx),
forceLoopToExecuteOnce(forceLoopToExecuteOnce) {}
: mlir::OpRewritePattern<fir::IfOp>(ctx) {}
mlir::LogicalResult
matchAndRewrite(IfOp ifOp, mlir::PatternRewriter &rewriter) const override {
@ -193,9 +192,6 @@ public:
rewriter.replaceOp(ifOp, continueBlock->getArguments());
return success();
}
private:
bool forceLoopToExecuteOnce;
};
/// Convert `fir.iter_while` to control-flow.
@ -204,8 +200,7 @@ public:
using OpRewritePattern::OpRewritePattern;
CfgIterWhileConv(mlir::MLIRContext *ctx, bool forceLoopToExecuteOnce)
: mlir::OpRewritePattern<fir::IterWhileOp>(ctx),
forceLoopToExecuteOnce(forceLoopToExecuteOnce) {}
: mlir::OpRewritePattern<fir::IterWhileOp>(ctx) {}
mlir::LogicalResult
matchAndRewrite(fir::IterWhileOp whileOp,
@ -294,9 +289,6 @@ public:
rewriter.replaceOp(whileOp, args);
return success();
}
private:
bool forceLoopToExecuteOnce;
};
/// Convert FIR structured control flow ops to CFG ops.