Eliminate a race condition with the global module index.
authorDouglas Gregor <dgregor@apple.com>
Wed, 6 Feb 2013 18:08:37 +0000 (18:08 +0000)
committerDouglas Gregor <dgregor@apple.com>
Wed, 6 Feb 2013 18:08:37 +0000 (18:08 +0000)
commitcb680661eb84cb0b034a55678a3445aede52bf8c
tree204b5cb01015d676f23f9b8ee54ca9ec66e6a227
parent5178942dedde6560316d52699742694e4495ea62
Eliminate a race condition with the global module index.

Essentially, a module file on disk could change size between the time
we stat() it and the time we open it, and we need to be robust against
such a problem.

llvm-svn: 174529
clang/lib/Serialization/GlobalModuleIndex.cpp