Skip to content

Commit 7624e2a

Browse files
committed
.exists() too
1 parent 9311be2 commit 7624e2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Frontend/ModuleDependencyCollector.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ std::error_code ModuleDependencyCollector::copyToRoot(StringRef Src,
154154
} else {
155155
// When collecting entries from input vfsoverlays, copy the external
156156
// contents into the cache but still map from the source.
157-
if (!fs::exists(Dst))
157+
if (!Canonicalizer.getFileSystem().exists(Dst))
158158
return std::error_code();
159159
path::append(CacheDst, Dst);
160160
Paths.CopyFrom = Dst;

0 commit comments

Comments
 (0)