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 | 75593942705cd1b45262746061988a58fd108cd3 (patch) | |
tree | d4787540e6b0fa7ac499228011887798c5475943 /llvm/utils/FileUpdate/FileUpdate.cpp | |
parent | ef832a69650c6b56262836d5fa3830556e500d08 (diff) | |
download | llvm-75593942705cd1b45262746061988a58fd108cd3.zip llvm-75593942705cd1b45262746061988a58fd108cd3.tar.gz llvm-75593942705cd1b45262746061988a58fd108cd3.tar.bz2 |
When handling raw_ostream errors manually, use clear_error() so that
raw_ostream doesn't try to do its own error handling.
llvm-svn: 104881
Diffstat (limited to 'llvm/utils/FileUpdate/FileUpdate.cpp')
-rw-r--r-- | llvm/utils/FileUpdate/FileUpdate.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/utils/FileUpdate/FileUpdate.cpp b/llvm/utils/FileUpdate/FileUpdate.cpp index 26fd75e..00c2091 100644 --- a/llvm/utils/FileUpdate/FileUpdate.cpp +++ b/llvm/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; } |