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 | 2a6fa47b266f090af059a8a5076a590840b5f0c4 (patch) | |
tree | 732d127bd7df650a706b97b0b994554fa4c8ffa8 /clang/lib/Basic/FileSystemStatCache.cpp | |
parent | 226efd356c6c98a4de2880e6090aa2f05b459fc5 (diff) | |
download | bcm5719-llvm-2a6fa47b266f090af059a8a5076a590840b5f0c4.tar.gz bcm5719-llvm-2a6fa47b266f090af059a8a5076a590840b5f0c4.zip |
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
Diffstat (limited to 'clang/lib/Basic/FileSystemStatCache.cpp')
-rw-r--r-- | clang/lib/Basic/FileSystemStatCache.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |