Skip to content

Commit 0fbd3aa

Browse files
committed
[fir] Remove unused variable in FIRBuilder.h
Remove unsused variable that break Werror on some buildbots
1 parent 7e81526 commit 0fbd3aa

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

flang/include/flang/Optimizer/Builder/FIRBuilder.h

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ namespace fir {
3333
class FirOpBuilder : public mlir::OpBuilder {
3434
public:
3535
explicit FirOpBuilder(mlir::Operation *op, const fir::KindMapping &kindMap)
36-
: OpBuilder{op}, kindMap{kindMap} {}
36+
: OpBuilder{op} {}
3737
explicit FirOpBuilder(mlir::OpBuilder &builder,
3838
const fir::KindMapping &kindMap)
39-
: OpBuilder{builder}, kindMap{kindMap} {}
39+
: OpBuilder{builder} {}
4040

4141
/// Create an integer constant of type \p type and value \p i.
4242
mlir::Value createIntegerConstant(mlir::Location loc, mlir::Type integerType,
@@ -50,9 +50,6 @@ class FirOpBuilder : public mlir::OpBuilder {
5050
mlir::Value convertToIndexType(mlir::Location loc, mlir::Value val) {
5151
return createConvert(loc, getIndexType(), val);
5252
}
53-
54-
private:
55-
const KindMapping &kindMap;
5653
};
5754

5855
} // namespace fir

0 commit comments

Comments
 (0)