[lld] r282795 - Remove a return type that can be trivially easily.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 29 15:14:20 PDT 2016
Author: ruiu
Date: Thu Sep 29 17:14:20 2016
New Revision: 282795
URL: http://llvm.org/viewvc/llvm-project?rev=282795&view=rev
Log:
Remove a return type that can be trivially easily.
Modified:
lld/trunk/ELF/LTO.cpp
Modified: lld/trunk/ELF/LTO.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/LTO.cpp?rev=282795&r1=282794&r2=282795&view=diff
==============================================================================
--- lld/trunk/ELF/LTO.cpp (original)
+++ lld/trunk/ELF/LTO.cpp Thu Sep 29 17:14:20 2016
@@ -120,8 +120,7 @@ std::vector<InputFile *> BitcodeCompiler
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]));
};
More information about the llvm-commits
mailing list