benlangmuir added a comment.

> B.pcm becomes out of date when we try to load module "A", because another 
> instance overwrites "B.pcm"


How can this happen?  We intentionally keep the file descriptors of modules 
open.  If you just built A, then you will have B.pcm still open.  When you read 
A, you will use the same B that you used when you built A even if the file on 
disk has been replaced (and we use rename to replace the file, so the existing 
one is never modified).


https://reviews.llvm.org/D22636



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to