[flang-commits] [flang] 30d11e5 - [Flang] Remove unused variable 'converter' in genCustomIntrinsicRefCore

Jie Fu via flang-commits flang-commits at lists.llvm.org
Tue Jul 18 05:18:18 PDT 2023


Author: Jie Fu
Date: 2023-07-18T20:17:18+08:00
New Revision: 30d11e5ef98c9d481daac5d3bd784416e71d22a2

URL: https://github.com/llvm/llvm-project/commit/30d11e5ef98c9d481daac5d3bd784416e71d22a2
DIFF: https://github.com/llvm/llvm-project/commit/30d11e5ef98c9d481daac5d3bd784416e71d22a2.diff

LOG: [Flang] Remove unused variable 'converter' in genCustomIntrinsicRefCore

/data/workspace/llvm-project/flang/lib/Lower/ConvertCall.cpp:1281:9: error: unused variable 'converter' [-Werror,-Wunused-variable]
  auto &converter = callContext.converter;
        ^
1 error generated.

Added: 
    

Modified: 
    flang/lib/Lower/ConvertCall.cpp

Removed: 
    


################################################################################
diff  --git a/flang/lib/Lower/ConvertCall.cpp b/flang/lib/Lower/ConvertCall.cpp
index c1d9d7ed7a37a6..8971f0e311cd89 100644
--- a/flang/lib/Lower/ConvertCall.cpp
+++ b/flang/lib/Lower/ConvertCall.cpp
@@ -1278,11 +1278,10 @@ static std::optional<hlfir::EntityWithAttributes> genCustomIntrinsicRefCore(
     Fortran::lower::PreparedActualArguments &loweredActuals,
     const Fortran::evaluate::SpecificIntrinsic *intrinsic,
     CallContext &callContext) {
-  auto &converter = callContext.converter;
   auto &builder = callContext.getBuilder();
   const auto &loc = callContext.loc;
   assert(intrinsic && Fortran::lower::intrinsicRequiresCustomOptionalHandling(
-                          callContext.procRef, *intrinsic, converter));
+                          callContext.procRef, *intrinsic, callContext.converter));
 
   // helper to get a particular prepared argument
   auto getArgument = [&](std::size_t i, bool loadArg) -> fir::ExtendedValue {


        


More information about the flang-commits mailing list