[flang-commits] [flang] a19c213 - [flang][NFC] Fix warning
Valentin Clement via flang-commits
flang-commits at lists.llvm.org
Thu Jun 30 07:56:57 PDT 2022
Author: Valentin Clement
Date: 2022-06-30T16:56:49+02:00
New Revision: a19c2132122e78051bfc98c304afb528b7ca14ec
URL: https://github.com/llvm/llvm-project/commit/a19c2132122e78051bfc98c304afb528b7ca14ec
DIFF: https://github.com/llvm/llvm-project/commit/a19c2132122e78051bfc98c304afb528b7ca14ec.diff
LOG: [flang][NFC] Fix warning
Added:
Modified:
flang/lib/Lower/Bridge.cpp
Removed:
################################################################################
diff --git a/flang/lib/Lower/Bridge.cpp b/flang/lib/Lower/Bridge.cpp
index d3bc95ab7e05..b61660fccca3 100644
--- a/flang/lib/Lower/Bridge.cpp
+++ b/flang/lib/Lower/Bridge.cpp
@@ -1750,7 +1750,7 @@ class FirConverter : public Fortran::lower::AbstractConverter {
auto caseValue = valueList.begin();
auto caseBlock = blockList.begin();
bool skipFinalization = false;
- for (const auto attr : llvm::enumerate(attrList)) {
+ for (const auto &attr : llvm::enumerate(attrList)) {
if (attr.value().isa<mlir::UnitAttr>()) {
if (attrList.size() == 1)
stmtCtx.finalize();
More information about the flang-commits
mailing list