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 88f358a + ae1d65a commit 49825a6Copy full SHA for 49825a6
clang/lib/Frontend/CompilerInstance.cpp
@@ -902,6 +902,10 @@ void CompilerInstance::clearOutputFiles(bool EraseFiles) {
902
[&](const llvm::vfs::OutputError &E) {
903
getDiagnostics().Report(diag::err_fe_unable_to_open_output)
904
<< E.getOutputPath() << E.convertToErrorCode().message();
905
+ },
906
+ [&](const llvm::ErrorInfoBase &EIB) { // Handle any remaining error
907
+ getDiagnostics().Report(diag::err_fe_unable_to_open_output)
908
+ << O.getPath() << EIB.message();
909
});
910
}
911
OutputFiles.clear();
0 commit comments