[clang] Don't crash when loading invalid VFS for the module dep collector
authorAlex Lorenz <arphaman@gmail.com>
Tue, 27 Apr 2021 00:01:51 +0000 (17:01 -0700)
committerAlex Lorenz <arphaman@gmail.com>
Tue, 27 Apr 2021 00:05:22 +0000 (17:05 -0700)
commit2509f9fbad0d37e3e5fea934c0ae7af3877ba4ae
treee359fb29df10d02bc7a11412218047f2aed74986
parenta2a3ca8d97962d90443ee758e47877e15d7e3832
[clang] Don't crash when loading invalid VFS for the module dep collector

The VFS is null when it's invalid so return early in collectVFSFromYAML.
clang/test/VFS/broken-vfs-module-dep.c [new file with mode: 0644]
llvm/lib/Support/VirtualFileSystem.cpp