mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-28 07:17:32 +00:00
When handling raw_ostream errors manually, use clear_error() so that
raw_ostream doesn't try to do its own error handling. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@104881 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -79,6 +79,7 @@ int main(int argc, char **argv) {
|
|||||||
if (OutStream.has_error()) {
|
if (OutStream.has_error()) {
|
||||||
errs() << argv[0] << ": Could not open output file '"
|
errs() << argv[0] << ": Could not open output file '"
|
||||||
<< OutputFilename << "': " << ErrorStr << '\n';
|
<< OutputFilename << "': " << ErrorStr << '\n';
|
||||||
|
OutStream.clear_error();
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user