[flang-commits] [flang] [flang] remove unused var after #118121 (PR #118295)

via flang-commits flang-commits at lists.llvm.org
Mon Dec 2 05:56:49 PST 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-flang-codegen

@llvm/pr-subscribers-flang-fir-hlfir

Author: None (jeanPerier)

<details>
<summary>Changes</summary>



---
Full diff: https://github.com/llvm/llvm-project/pull/118295.diff


1 Files Affected:

- (modified) flang/lib/Optimizer/CodeGen/TargetRewrite.cpp (-1) 


``````````diff
diff --git a/flang/lib/Optimizer/CodeGen/TargetRewrite.cpp b/flang/lib/Optimizer/CodeGen/TargetRewrite.cpp
index 4f5f1ff66718a2..0968667e275f75 100644
--- a/flang/lib/Optimizer/CodeGen/TargetRewrite.cpp
+++ b/flang/lib/Optimizer/CodeGen/TargetRewrite.cpp
@@ -845,7 +845,6 @@ class TargetRewrite : public fir::impl::TargetRewritePassBase<TargetRewrite> {
               for (auto e : llvm::enumerate(
                        specifics->boxcharArgumentType(boxTy.getEleTy()))) {
                 auto &tup = e.value();
-                auto index = e.index();
                 auto attr = std::get<fir::CodeGenSpecifics::Attributes>(tup);
                 auto argTy = std::get<mlir::Type>(tup);
                 if (attr.isAppend()) {

``````````

</details>


https://github.com/llvm/llvm-project/pull/118295


More information about the flang-commits mailing list