diff --git a/flang/lib/Lower/ConvertVariable.cpp b/flang/lib/Lower/ConvertVariable.cpp --- a/flang/lib/Lower/ConvertVariable.cpp +++ b/flang/lib/Lower/ConvertVariable.cpp @@ -1004,7 +1004,7 @@ std::vector> delayedInitializations; - for (const auto [common, size] : commonBlocks) + for (const auto &[common, size] : commonBlocks) if (auto delayedInit = declareCommonBlock(converter, common, size)) delayedInitializations.emplace_back(std::move(*delayedInit)); for (auto &[global, cmnBlkMems, loc] : delayedInitializations)