[PATCH] D12260: CodeGen: Introduce LinkedCodeGen and teach LTOCodeGenerator to use it.

Peter Collingbourne via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 27 16:38:57 PDT 2015


pcc added inline comments.

================
Comment at: lib/CodeGen/ParallelCG.cpp:86
@@ +85,3 @@
+        },
+        std::move(BC));
+  });
----------------
joker.eph wrote:
> No move needed here since it is a const ref right?
The `std::move` here is needed for the `std::thread` constructor to move (rather than copy) `BC` into thread-accessible storage (the const ref is taken from that storage). Added a comment clarifying.


Repository:
  rL LLVM

http://reviews.llvm.org/D12260





More information about the llvm-commits mailing list