[PATCH] D44960: Prevent llvm-cov from hanging when a symblink doesn't exist.

Yuke Liao via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 28 10:28:06 PDT 2018


liaoyuke updated this revision to Diff 140100.
liaoyuke added a comment.

When recursive directory iterator encounters an error, it either hangs
or exits immediately in previous implementations.

This change modifies the behavior to report the error and continue
its walk, and added corresponding unit tests to verify it.


Repository:
  rL LLVM

https://reviews.llvm.org/D44960

Files:
  include/llvm/Support/FileSystem.h
  tools/llvm-cov/CodeCoverage.cpp
  unittests/Support/Path.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D44960.140100.patch
Type: text/x-patch
Size: 6114 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180328/6b9d5082/attachment.bin>


More information about the llvm-commits mailing list