LTO: Fix use-after-scope error.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@282665 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Peter Collingbourne 2016-09-29 01:28:36 +00:00
parent 846f55c8f3
commit 0b61d07b60

View 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) {