summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-04-09 15:54:22 +0000
committerDouglas Gregor <dgregor@apple.com>2010-04-09 15:54:22 +0000
commit08288f28462e4a8d75d40c456190168b2b8cad1d (patch)
treeb27f2835b96c93613449f90d3820e3a9b74d7c3e /clang/lib/Frontend
parentcdabb31d6f08c75c8af48828613ae9833d1a058a (diff)
downloadbcm5719-llvm-08288f28462e4a8d75d40c456190168b2b8cad1d.tar.gz
bcm5719-llvm-08288f28462e4a8d75d40c456190168b2b8cad1d.zip
On Windows, disable the modification-time check for files used in
precompiled headers and/or when reading the contents of the file into memory. These checks seem to be causing spurious regression-test failures on Windows. llvm-svn: 100866
Diffstat (limited to 'clang/lib/Frontend')
-rw-r--r--clang/lib/Frontend/PCHReader.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/clang/lib/Frontend/PCHReader.cpp b/clang/lib/Frontend/PCHReader.cpp
index 41e06661fab..578c047b005 100644
--- a/clang/lib/Frontend/PCHReader.cpp
+++ b/clang/lib/Frontend/PCHReader.cpp
@@ -910,8 +910,14 @@ PCHReader::PCHReadResult PCHReader::ReadSLocEntryRecord(unsigned ID) {
return Failure;
}
- if ((off_t)Record[4] != File->getSize() ||
- (time_t)Record[5] != File->getModificationTime()) {
+ if ((off_t)Record[4] != File->getSize()
+#if !defined(LLVM_ON_WIN32)
+ // In our regression testing, the Windows file system seems to
+ // have inconsistent modification times that sometimes
+ // erroneously trigger this error-handling path.
+ || (time_t)Record[5] != File->getModificationTime()
+#endif
+ ) {
Diag(diag::err_fe_pch_file_modified)
<< Filename;
return Failure;
OpenPOWER on IntegriCloud