We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a7e62b8 + f2b5016 commit b91df70Copy full SHA for b91df70
clang/lib/Frontend/CompilerInstance.cpp
@@ -898,6 +898,10 @@ void CompilerInstance::clearOutputFiles(bool EraseFiles) {
898
[&](const llvm::vfs::OutputError &E) {
899
getDiagnostics().Report(diag::err_fe_unable_to_open_output)
900
<< E.getOutputPath() << E.convertToErrorCode().message();
901
+ },
902
+ [&](const llvm::ErrorInfoBase &EIB) { // Handle any remaining error
903
+ getDiagnostics().Report(diag::err_fe_unable_to_open_output)
904
+ << O.getPath() << EIB.message();
905
});
906
}
907
OutputFiles.clear();
0 commit comments