[flang-commits] [flang] e42864e - [flang] Fixed buildbots: removed std::move preventing copy elision.

Slava Zakharin via flang-commits flang-commits at lists.llvm.org
Tue Jun 4 15:31:48 PDT 2024


Author: Slava Zakharin
Date: 2024-06-04T15:31:39-07:00
New Revision: e42864ecfb35466d38beeaf57c5da009c5bc77c1

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

LOG: [flang] Fixed buildbots: removed std::move preventing copy elision.

Added: 
    

Modified: 
    flang/lib/Optimizer/Dialect/FIROps.cpp

Removed: 
    


################################################################################
diff  --git a/flang/lib/Optimizer/Dialect/FIROps.cpp b/flang/lib/Optimizer/Dialect/FIROps.cpp
index ece156a6f9bf1..b530a9dc1bcc4 100644
--- a/flang/lib/Optimizer/Dialect/FIROps.cpp
+++ b/flang/lib/Optimizer/Dialect/FIROps.cpp
@@ -772,7 +772,7 @@ struct SimplifyArrayCoorOp : public mlir::OpRewritePattern<fir::ArrayCoorOp> {
         shiftedIndices.push_back(sub);
       }
 
-      return std::move(shiftedIndices);
+      return shiftedIndices;
     };
 
     if (auto shiftOp =


        


More information about the flang-commits mailing list