summaryrefslogtreecommitdiff
path: root/include/clang/Basic/VirtualFileSystem.h
diff options
context:
space:
mode:
authorJuergen Ributzka <juergen@apple.com>2017-03-11 00:14:50 +0000
committerJuergen Ributzka <juergen@apple.com>2017-03-11 00:14:50 +0000
commit0149c8804f2b52a8acb8b0a0b1b30417ef30fe41 (patch)
treefb0ee7cd40a5484c54118470082fdf975d54c94a /include/clang/Basic/VirtualFileSystem.h
parent87ead162610508ced78c0869f4401cd91e8424ab (diff)
downloadclang-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.h2
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;
}