llvm-svn: 142699
closer to what GCC does, except that GCC also checks that the inodes for $PWD and '.' match. llvm-svn: 142633