diff options
-rw-r--r-- | lld/COFF/LTO.cpp | 8 | ||||
-rw-r--r-- | lld/ELF/LTO.cpp | 5 |
2 files changed, 7 insertions, 6 deletions
diff --git a/lld/COFF/LTO.cpp b/lld/COFF/LTO.cpp index fa2a54b6184..8a1c82c073c 100644 --- a/lld/COFF/LTO.cpp +++ b/lld/COFF/LTO.cpp @@ -127,10 +127,10 @@ std::vector<StringRef> BitcodeCompiler::compile() { // specified, configure LTO to use it as the cache directory. lto::NativeObjectCache Cache; if (!Config->LTOCache.empty()) - Cache = check( - lto::localCache(Config->LTOCache, - [&](size_t Task, std::unique_ptr<MemoryBuffer> MB, - StringRef Path) { Files[Task] = std::move(MB); })); + Cache = check(lto::localCache( + Config->LTOCache, [&](size_t Task, std::unique_ptr<MemoryBuffer> MB) { + Files[Task] = std::move(MB); + })); checkError(LTOObj->run( [&](size_t Task) { diff --git a/lld/ELF/LTO.cpp b/lld/ELF/LTO.cpp index d5c4d80cd5b..f3d68962dc1 100644 --- a/lld/ELF/LTO.cpp +++ b/lld/ELF/LTO.cpp @@ -190,8 +190,9 @@ std::vector<InputFile *> BitcodeCompiler::compile() { if (!Config->ThinLTOCacheDir.empty()) Cache = check( lto::localCache(Config->ThinLTOCacheDir, - [&](size_t Task, std::unique_ptr<MemoryBuffer> MB, - StringRef Path) { Files[Task] = std::move(MB); })); + [&](size_t Task, std::unique_ptr<MemoryBuffer> MB) { + Files[Task] = std::move(MB); + })); checkError(LTOObj->run( [&](size_t Task) { |