[flang-commits] [flang] 0fbd3aa - [fir] Remove unused variable in FIRBuilder.h
Valentin Clement via flang-commits
flang-commits at lists.llvm.org
Wed Oct 13 22:12:24 PDT 2021
Author: Valentin Clement
Date: 2021-10-14T07:11:41+02:00
New Revision: 0fbd3aad75f957da5a76e761509efed1988d562b
URL: https://github.com/llvm/llvm-project/commit/0fbd3aad75f957da5a76e761509efed1988d562b
DIFF: https://github.com/llvm/llvm-project/commit/0fbd3aad75f957da5a76e761509efed1988d562b.diff
LOG: [fir] Remove unused variable in FIRBuilder.h
Remove unsused variable that break Werror on some buildbots
Added:
Modified:
flang/include/flang/Optimizer/Builder/FIRBuilder.h
Removed:
################################################################################
diff --git a/flang/include/flang/Optimizer/Builder/FIRBuilder.h b/flang/include/flang/Optimizer/Builder/FIRBuilder.h
index 0fc450ba114dc..2d9cc2a78bc0d 100644
--- a/flang/include/flang/Optimizer/Builder/FIRBuilder.h
+++ b/flang/include/flang/Optimizer/Builder/FIRBuilder.h
@@ -33,10 +33,10 @@ namespace fir {
class FirOpBuilder : public mlir::OpBuilder {
public:
explicit FirOpBuilder(mlir::Operation *op, const fir::KindMapping &kindMap)
- : OpBuilder{op}, kindMap{kindMap} {}
+ : OpBuilder{op} {}
explicit FirOpBuilder(mlir::OpBuilder &builder,
const fir::KindMapping &kindMap)
- : OpBuilder{builder}, kindMap{kindMap} {}
+ : OpBuilder{builder} {}
/// Create an integer constant of type \p type and value \p i.
mlir::Value createIntegerConstant(mlir::Location loc, mlir::Type integerType,
@@ -50,9 +50,6 @@ class FirOpBuilder : public mlir::OpBuilder {
mlir::Value convertToIndexType(mlir::Location loc, mlir::Value val) {
return createConvert(loc, getIndexType(), val);
}
-
-private:
- const KindMapping &kindMap;
};
} // namespace fir
More information about the flang-commits
mailing list