diff options
author | Jie Fu <jiefu@tencent.com> | 2023-07-18 20:17:18 +0800 |
---|---|---|
committer | Jie Fu <jiefu@tencent.com> | 2023-07-18 20:17:18 +0800 |
commit | 30d11e5ef98c9d481daac5d3bd784416e71d22a2 (patch) | |
tree | 283c1a37990d9b5bb219121b3a0882c1b68dfd52 /flang | |
parent | eadbc4b004b6f5bcd67f17b1d79c9955bd410fb8 (diff) | |
download | llvm-30d11e5ef98c9d481daac5d3bd784416e71d22a2.zip llvm-30d11e5ef98c9d481daac5d3bd784416e71d22a2.tar.gz llvm-30d11e5ef98c9d481daac5d3bd784416e71d22a2.tar.bz2 |
[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.
Diffstat (limited to 'flang')
-rw-r--r-- | flang/lib/Lower/ConvertCall.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/flang/lib/Lower/ConvertCall.cpp b/flang/lib/Lower/ConvertCall.cpp index c1d9d7e..8971f0e 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 { |