[flang-commits] [flang] e7d569a - [flang] Fix copy creation in #94718

Valentin Clement via flang-commits flang-commits at lists.llvm.org
Mon Jun 10 08:50:24 PDT 2024


Author: Valentin Clement
Date: 2024-06-10T08:50:08-07:00
New Revision: e7d569a0faa833623af59d4eab5d6277ce031d9e

URL: https://github.com/llvm/llvm-project/commit/e7d569a0faa833623af59d4eab5d6277ce031d9e
DIFF: https://github.com/llvm/llvm-project/commit/e7d569a0faa833623af59d4eab5d6277ce031d9e.diff

LOG: [flang] Fix copy creation in #94718

Added: 
    

Modified: 
    flang/lib/Lower/Bridge.cpp

Removed: 
    


################################################################################
diff  --git a/flang/lib/Lower/Bridge.cpp b/flang/lib/Lower/Bridge.cpp
index 14e99757925ac..202efa57d4a36 100644
--- a/flang/lib/Lower/Bridge.cpp
+++ b/flang/lib/Lower/Bridge.cpp
@@ -2000,7 +2000,7 @@ class FirConverter : public Fortran::lower::AbstractConverter {
           llvm::SmallVector<mlir::Value> reduceOperands;
           llvm::SmallVector<mlir::Attribute> reduceAttrs;
           // Create DO CONCURRENT reduce operands and attributes
-          for (const auto reduceSym : info.reduceSymList) {
+          for (const auto &reduceSym : info.reduceSymList) {
             const fir::ReduceOperationEnum reduce_operation = reduceSym.first;
             const Fortran::semantics::Symbol *sym = reduceSym.second;
             fir::ExtendedValue exv = getSymbolExtendedValue(*sym, nullptr);


        


More information about the flang-commits mailing list