X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=lib%2FCodeGen%2FParallelCG.cpp;h=748d3883ea1fe0bf5a85defd690444bb2c41e5b1;hb=fffd64acde62a29d26375a160ff5903860af41ed;hp=3e6a71d602b5cb89e3977d9b75c12c90ff372e97;hpb=daf6885fa4d5cab11a589346091d23a1178e762a;p=oota-llvm.git diff --git a/lib/CodeGen/ParallelCG.cpp b/lib/CodeGen/ParallelCG.cpp index 3e6a71d602b..748d3883ea1 100644 --- a/lib/CodeGen/ParallelCG.cpp +++ b/lib/CodeGen/ParallelCG.cpp @@ -56,7 +56,7 @@ llvm::splitCodeGen(std::unique_ptr M, return M; } - std::vector Threads; + std::vector Threads; SplitModule(std::move(M), OSs.size(), [&](std::unique_ptr MPart) { // We want to clone the module in a new context to multi-thread the codegen. // We do it by serializing partition modules to bitcode (while still on the @@ -88,7 +88,7 @@ llvm::splitCodeGen(std::unique_ptr M, std::move(BC)); }); - for (std::thread &T : Threads) + for (thread &T : Threads) T.join(); return {};