diff options
author | Juergen Ributzka <juergen@apple.com> | 2017-03-11 00:14:50 +0000 |
---|---|---|
committer | Juergen Ributzka <juergen@apple.com> | 2017-03-11 00:14:50 +0000 |
commit | 0149c8804f2b52a8acb8b0a0b1b30417ef30fe41 (patch) | |
tree | fb0ee7cd40a5484c54118470082fdf975d54c94a /include/clang/Basic/VirtualFileSystem.h | |
parent | 87ead162610508ced78c0869f4401cd91e8424ab (diff) | |
download | clang-0149c8804f2b52a8acb8b0a0b1b30417ef30fe41.tar.gz |
Revert "Reapply [VFS] Ignore broken symlinks in the directory iterator."
Still broken on Windows and SystemZ bot ... sorry for the noise.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@297533 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/VirtualFileSystem.h')
-rw-r--r-- | include/clang/Basic/VirtualFileSystem.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/clang/Basic/VirtualFileSystem.h b/include/clang/Basic/VirtualFileSystem.h index e52b345e28..39dab6cbf0 100644 --- a/include/clang/Basic/VirtualFileSystem.h +++ b/include/clang/Basic/VirtualFileSystem.h @@ -161,7 +161,7 @@ public: directory_iterator &increment(std::error_code &EC) { assert(Impl && "attempting to increment past end"); EC = Impl->increment(); - if (!Impl->CurrentEntry.isStatusKnown()) + if (EC || !Impl->CurrentEntry.isStatusKnown()) Impl.reset(); // Normalize the end iterator to Impl == nullptr. return *this; } |