[flang-commits] [flang] 1bfbe31 - [flang] Remove ununsed variable in ScalarExprLowering

Valentin Clement via flang-commits flang-commits at lists.llvm.org
Thu Feb 3 06:03:05 PST 2022


Author: Valentin Clement
Date: 2022-02-03T15:02:49+01:00
New Revision: 1bfbe315a76b40f9c3d4cbc8932b05509c5a7c5e

URL: https://github.com/llvm/llvm-project/commit/1bfbe315a76b40f9c3d4cbc8932b05509c5a7c5e
DIFF: https://github.com/llvm/llvm-project/commit/1bfbe315a76b40f9c3d4cbc8932b05509c5a7c5e.diff

LOG: [flang] Remove ununsed variable in ScalarExprLowering

Fix buildbot failure https://lab.llvm.org/buildbot/#/builders/180/builds/3066

Added: 
    

Modified: 
    flang/lib/Lower/ConvertExpr.cpp

Removed: 
    


################################################################################
diff  --git a/flang/lib/Lower/ConvertExpr.cpp b/flang/lib/Lower/ConvertExpr.cpp
index b57fb67e68c5e..72c8313f61a2d 100644
--- a/flang/lib/Lower/ConvertExpr.cpp
+++ b/flang/lib/Lower/ConvertExpr.cpp
@@ -44,10 +44,9 @@ class ScalarExprLowering {
   using ExtValue = fir::ExtendedValue;
 
   explicit ScalarExprLowering(mlir::Location loc,
-                              Fortran::lower::AbstractConverter &converter,
-                              Fortran::lower::SymMap &symMap)
+                              Fortran::lower::AbstractConverter &converter)
       : location{loc}, converter{converter},
-        builder{converter.getFirOpBuilder()}, symMap{symMap} {}
+        builder{converter.getFirOpBuilder()} {}
 
   mlir::Location getLoc() { return location; }
 
@@ -336,13 +335,12 @@ class ScalarExprLowering {
   mlir::Location location;
   Fortran::lower::AbstractConverter &converter;
   fir::FirOpBuilder &builder;
-  Fortran::lower::SymMap &symMap;
 };
 } // namespace
 
 fir::ExtendedValue Fortran::lower::createSomeExtendedExpression(
     mlir::Location loc, Fortran::lower::AbstractConverter &converter,
-    const Fortran::lower::SomeExpr &expr, Fortran::lower::SymMap &symMap) {
+    const Fortran::lower::SomeExpr &expr, Fortran::lower::SymMap &) {
   LLVM_DEBUG(expr.AsFortran(llvm::dbgs() << "expr: ") << '\n');
-  return ScalarExprLowering{loc, converter, symMap}.genval(expr);
+  return ScalarExprLowering{loc, converter}.genval(expr);
 }


        


More information about the flang-commits mailing list