[flang-commits] [flang] 61a58fc - [flang] remove unused var after #118121 (#118295)
via flang-commits
flang-commits at lists.llvm.org
Mon Dec 2 06:20:22 PST 2024
Author: jeanPerier
Date: 2024-12-02T15:20:17+01:00
New Revision: 61a58fc676297756519412ddc1dfab6a75207b70
URL: https://github.com/llvm/llvm-project/commit/61a58fc676297756519412ddc1dfab6a75207b70
DIFF: https://github.com/llvm/llvm-project/commit/61a58fc676297756519412ddc1dfab6a75207b70.diff
LOG: [flang] remove unused var after #118121 (#118295)
Fix https://lab.llvm.org/buildbot/#/builders/89/builds/11704
Added:
Modified:
flang/lib/Optimizer/CodeGen/TargetRewrite.cpp
Removed:
################################################################################
diff --git a/flang/lib/Optimizer/CodeGen/TargetRewrite.cpp b/flang/lib/Optimizer/CodeGen/TargetRewrite.cpp
index 4f5f1ff66718a2..ae6e7ce798d998 100644
--- a/flang/lib/Optimizer/CodeGen/TargetRewrite.cpp
+++ b/flang/lib/Optimizer/CodeGen/TargetRewrite.cpp
@@ -842,10 +842,8 @@ class TargetRewrite : public fir::impl::TargetRewritePassBase<TargetRewrite> {
// Convert a CHARACTER argument type. This can involve separating
// the pointer and the LEN into two arguments and moving the LEN
// argument to the end of the arg list.
- for (auto e : llvm::enumerate(
- specifics->boxcharArgumentType(boxTy.getEleTy()))) {
- auto &tup = e.value();
- auto index = e.index();
+ for (auto &tup :
+ specifics->boxcharArgumentType(boxTy.getEleTy())) {
auto attr = std::get<fir::CodeGenSpecifics::Attributes>(tup);
auto argTy = std::get<mlir::Type>(tup);
if (attr.isAppend()) {
More information about the flang-commits
mailing list