Nevermind, I see you've fixed. Thanks :)
On Fri, Mar 10, 2017 at 3:21 PM Eric Christopher wrote:
> Looks like this is failing on a number of bots...
>
> On Fri, Mar 10, 2017 at 1:37 PM Juergen Ributzka via Phabricator via
> cfe-commits wrote:
>
> ributzka added a comment.
>
> Thanks Bruno. Comm
Looks like this is failing on a number of bots...
On Fri, Mar 10, 2017 at 1:37 PM Juergen Ributzka via Phabricator via
cfe-commits wrote:
> ributzka added a comment.
>
> Thanks Bruno. Committed in r297510.
>
>
> Repository:
> rL LLVM
>
> https://reviews.llvm.org/D30768
>
>
>
>
ributzka added a comment.
Thanks Bruno. Committed in r297510.
Repository:
rL LLVM
https://reviews.llvm.org/D30768
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
This revision was automatically updated to reflect the committed changes.
Closed by commit rL297510: [VFS] Ignore broken symlinks in the directory
iterator. (authored by ributzka).
Changed prior to commit:
https://reviews.llvm.org/D30768?vs=91371&id=91403#toc
Repository:
rL LLVM
https://rev
bruno accepted this revision.
bruno added inline comments.
This revision is now accepted and ready to land.
Comment at: lib/Basic/VirtualFileSystem.cpp:1873
vfs::directory_iterator I = FS->dir_begin(State->top()->getName(), EC);
-if (EC)
+if (EC && EC != std::errc::n
ributzka updated this revision to Diff 91371.
ributzka added a comment.
Remove the EC check completely.
https://reviews.llvm.org/D30768
Files:
include/clang/Basic/VirtualFileSystem.h
lib/Basic/VirtualFileSystem.cpp
unittests/Basic/VirtualFileSystemTest.cpp
Index: unittests/Basic/VirtualF
ributzka added inline comments.
Comment at: include/clang/Basic/VirtualFileSystem.h:164
EC = Impl->increment();
-if (EC || !Impl->CurrentEntry.isStatusKnown())
+if (!Impl->CurrentEntry.isStatusKnown())
Impl.reset(); // Normalize the end iterator to Impl == nul
ributzka added inline comments.
Comment at: lib/Basic/VirtualFileSystem.cpp:1873
vfs::directory_iterator I = FS->dir_begin(State->top()->getName(), EC);
-if (EC)
+if (EC && EC != std::errc::no_such_file_or_directory)
return *this;
bruno wrote:
bruno added a comment.
Hi Juergen,
Thanks for working on this.
Comment at: include/clang/Basic/VirtualFileSystem.h:164
EC = Impl->increment();
-if (EC || !Impl->CurrentEntry.isStatusKnown())
+if (!Impl->CurrentEntry.isStatusKnown())
Impl.reset(); // Normali
ributzka created this revision.
The VFS directory iterator and recursive directory iterator behave differently
from the LLVM counterparts. Once the VFS iterators hit a broken symlink they
immediately abort. The LLVM counterparts allow to recover from this issue by
clearing the error code and skipp
10 matches
Mail list logo