[lldb] Check that files exists before handing them off to FileCollector
authorJonas Devlieghere <jonas@devlieghere.com>
Fri, 19 Feb 2021 00:13:28 +0000 (16:13 -0800)
committerJonas Devlieghere <jonas@devlieghere.com>
Fri, 19 Feb 2021 00:16:15 +0000 (16:16 -0800)
commit31fa76fd24adea755e4368674a59385d2c5b0cc7
treeb909367bc4d64407d440f762d191dffb0c6d317d
parent2d3d2e78d08578f4699cc268b7c292c3ff97e7fe
[lldb] Check that files exists before handing them off to FileCollector

The FileCollector asserts that paths passed to addDirectory are indeed
directories. For that to work, the file needs to actually exist. In the
downstream Swift fork we have tests that remove files during testing,
which resulted in this assertion getting triggered.
lldb/source/Utility/Reproducer.cpp