LTO: Fix use-after-scope error.

llvm-svn: 282665
This commit is contained in:
Peter Collingbourne 2016-09-29 01:28:36 +00:00
parent ed1414b83c
commit 0d5636e517
1 changed files with 1 additions and 0 deletions

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