diff options
author | Dan Gohman <gohman@apple.com> | 2010-05-27 20:17:28 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-05-27 20:17:28 +0000 |
commit | 756a96a328c3657029a47081ea7e961b4f0f65a5 (patch) | |
tree | 025923b23ff6c64fe6118fdad250e66eb1a0bb58 /utils/FileUpdate | |
parent | 54feef29500dda8ee885af177b449c62ac8b6444 (diff) |
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
Diffstat (limited to 'utils/FileUpdate')
-rw-r--r-- | utils/FileUpdate/FileUpdate.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/utils/FileUpdate/FileUpdate.cpp b/utils/FileUpdate/FileUpdate.cpp index 26fd75ef68..00c20915fc 100644 --- a/utils/FileUpdate/FileUpdate.cpp +++ b/utils/FileUpdate/FileUpdate.cpp @@ -79,6 +79,7 @@ int main(int argc, char **argv) { if (OutStream.has_error()) { errs() << argv[0] << ": Could not open output file '" << OutputFilename << "': " << ErrorStr << '\n'; + OutStream.clear_error(); return 1; } |