OSDN Git Service

LTO: Fix use-after-scope error.
authorPeter Collingbourne <peter@pcc.me.uk>
Thu, 29 Sep 2016 01:28:36 +0000 (01:28 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Thu, 29 Sep 2016 01:28:36 +0000 (01:28 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@282665 91177308-0d34-0410-b5e6-96231b3b80d8

lib/LTO/LTOBackend.cpp

index 96215b7..86ab8aa 100644 (file)
@@ -253,6 +253,7 @@ void splitCodeGen(Config &C, TargetMachine *TM, AddStreamFn AddStream,
             std::move(BC), ThreadCount++);
       },
       false);
+  CodegenThreadPool.wait();
 }
 
 Expected<const Target *> initAndLookupTarget(Config &C, Module &Mod) {