Index: llvm/lib/Support/Caching.cpp =================================================================== --- llvm/lib/Support/Caching.cpp +++ llvm/lib/Support/Caching.cpp @@ -99,7 +99,7 @@ // Open the file first to avoid racing with a cache pruner. ErrorOr> MBOrErr = MemoryBuffer::getOpenFile( - sys::fs::convertFDToNativeFile(TempFile.FD), TempFile.TmpName, + sys::fs::convertFDToNativeFile(TempFile.FD), EntryPath, /*FileSize=*/-1, /*RequiresNullTerminator=*/false); if (!MBOrErr) report_fatal_error(Twine("Failed to open new cache file ") +