Skip to content

Commit 506630d

Browse files
authored
[clang][deps] Avoid unchecked error assertion (#134284)
1 parent 85fdab3 commit 506630d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/tools/clang-scan-deps/ClangScanDeps.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -929,7 +929,7 @@ int clang_scan_deps_main(int argc, char **argv, const llvm::ToolContext &) {
929929
FileOS.emplace(OutputFileName, EC, llvm::sys::fs::OF_Text);
930930
if (EC) {
931931
llvm::errs() << "Failed to open output file '" << OutputFileName
932-
<< "': " << llvm::errorCodeToError(EC) << '\n';
932+
<< "': " << EC.message() << '\n';
933933
std::exit(1);
934934
}
935935
return *FileOS;

0 commit comments

Comments
 (0)