diff options
author | Chris Lattner <sabre@nondot.org> | 2010-11-23 19:28:12 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-11-23 19:28:12 +0000 |
commit | 74e976ba4b0d407bb798ea26476f618e256fc8c7 (patch) | |
tree | 57aba6b267132c96e7e313d3400c93e97db6ce26 /lib/Basic/FileSystemStatCache.cpp | |
parent | 10e286aa8d39fb51a21412850265d9dae74613ee (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120031 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Basic/FileSystemStatCache.cpp')
-rw-r--r-- | lib/Basic/FileSystemStatCache.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Basic/FileSystemStatCache.cpp b/lib/Basic/FileSystemStatCache.cpp index 8fd31d5dfc..3e13740cab 100644 --- a/lib/Basic/FileSystemStatCache.cpp +++ b/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; } |