Skip to content

Commit 61a58fc

Browse files
authored
1 parent cdbd228 commit 61a58fc

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

flang/lib/Optimizer/CodeGen/TargetRewrite.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -842,10 +842,8 @@ class TargetRewrite : public fir::impl::TargetRewritePassBase<TargetRewrite> {
842842
// Convert a CHARACTER argument type. This can involve separating
843843
// the pointer and the LEN into two arguments and moving the LEN
844844
// argument to the end of the arg list.
845-
for (auto e : llvm::enumerate(
846-
specifics->boxcharArgumentType(boxTy.getEleTy()))) {
847-
auto &tup = e.value();
848-
auto index = e.index();
845+
for (auto &tup :
846+
specifics->boxcharArgumentType(boxTy.getEleTy())) {
849847
auto attr = std::get<fir::CodeGenSpecifics::Attributes>(tup);
850848
auto argTy = std::get<mlir::Type>(tup);
851849
if (attr.isAppend()) {

0 commit comments

Comments
 (0)