Skip to content

Commit cb0ac58

Browse files
committed
fixup! Handle manifest path errors without hardcoded string matching.
1 parent dd7f47c commit cb0ac58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Driver/Driver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1855,7 +1855,7 @@ Compilation *Driver::BuildCompilation(ArrayRef<const char *> ArgList) {
18551855
// pruned later.
18561856
const auto StdModuleManifestPath =
18571857
GetStdModuleManifestPath(*C, C->getDefaultToolChain());
1858-
if (llvm::sys::fs::exists(StdModuleManifestPath)) {
1858+
if (!llvm::sys::fs::exists(StdModuleManifestPath)) {
18591859
Diags.Report(diag::remark_modules_manifest_not_found);
18601860
} else {
18611861
Diags.Report(diag::remark_using_modules_manifest)

0 commit comments

Comments
 (0)