Skip to content

Commit e7d569a

Browse files
committed
[flang] Fix copy creation in #94718
1 parent 97159a3 commit e7d569a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flang/lib/Lower/Bridge.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2000,7 +2000,7 @@ class FirConverter : public Fortran::lower::AbstractConverter {
20002000
llvm::SmallVector<mlir::Value> reduceOperands;
20012001
llvm::SmallVector<mlir::Attribute> reduceAttrs;
20022002
// Create DO CONCURRENT reduce operands and attributes
2003-
for (const auto reduceSym : info.reduceSymList) {
2003+
for (const auto &reduceSym : info.reduceSymList) {
20042004
const fir::ReduceOperationEnum reduce_operation = reduceSym.first;
20052005
const Fortran::semantics::Symbol *sym = reduceSym.second;
20062006
fir::ExtendedValue exv = getSymbolExtendedValue(*sym, nullptr);

0 commit comments

Comments
 (0)