diff --git a/lld/COFF/LTO.cpp b/lld/COFF/LTO.cpp index fa2a54b61841..8a1c82c073c7 100644 --- a/lld/COFF/LTO.cpp +++ b/lld/COFF/LTO.cpp @@ -127,10 +127,10 @@ std::vector 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 MB, - StringRef Path) { Files[Task] = std::move(MB); })); + Cache = check(lto::localCache( + Config->LTOCache, [&](size_t Task, std::unique_ptr 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 d5c4d80cd5b7..f3d68962dc16 100644 --- a/lld/ELF/LTO.cpp +++ b/lld/ELF/LTO.cpp @@ -190,8 +190,9 @@ std::vector BitcodeCompiler::compile() { if (!Config->ThinLTOCacheDir.empty()) Cache = check( lto::localCache(Config->ThinLTOCacheDir, - [&](size_t Task, std::unique_ptr MB, - StringRef Path) { Files[Task] = std::move(MB); })); + [&](size_t Task, std::unique_ptr MB) { + Files[Task] = std::move(MB); + })); checkError(LTOObj->run( [&](size_t Task) {