diff options
-rw-r--r-- | lld/ELF/LTO.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lld/ELF/LTO.cpp b/lld/ELF/LTO.cpp index fc68d4f462f..eb35e18ef61 100644 --- a/lld/ELF/LTO.cpp +++ b/lld/ELF/LTO.cpp @@ -120,8 +120,7 @@ std::vector<InputFile *> BitcodeCompiler::compile() { unsigned MaxTasks = LtoObj->getMaxTasks(); Buff.resize(MaxTasks); - auto AddStream = - [&](size_t Task) -> std::unique_ptr<lto::NativeObjectStream> { + auto AddStream = [&](size_t Task) { return llvm::make_unique<lto::NativeObjectStream>( llvm::make_unique<llvm::raw_svector_ostream>(Buff[Task])); }; |