From 2a6fa47b266f090af059a8a5076a590840b5f0c4 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 23 Nov 2010 19:28:12 +0000 Subject: PCH files only cache successful stats. Remove the code that reads/writes the result code of the stat to/from the PCH file since it is always 0. llvm-svn: 120031 --- clang/lib/Basic/FileSystemStatCache.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/lib/Basic/FileSystemStatCache.cpp') diff --git a/clang/lib/Basic/FileSystemStatCache.cpp b/clang/lib/Basic/FileSystemStatCache.cpp index 8fd31d5dfc0..3e13740caba 100644 --- a/clang/lib/Basic/FileSystemStatCache.cpp +++ b/clang/lib/Basic/FileSystemStatCache.cpp @@ -34,7 +34,7 @@ MemorizeStatCalls::getStat(const char *Path, struct stat &StatBuf) { // Cache file 'stat' results and directories with absolutely paths. if (!S_ISDIR(StatBuf.st_mode) || llvm::sys::Path(Path).isAbsolute()) - StatCalls[Path] = StatResult(Result, StatBuf); + StatCalls[Path] = StatBuf; return Result; } -- cgit v1.2.3