OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
54feef2
)
When handling raw_ostream errors manually, use clear_error() so that
author
Dan Gohman
<gohman@apple.com>
Thu, 27 May 2010 20:17:28 +0000
(20:17 +0000)
committer
Dan Gohman
<gohman@apple.com>
Thu, 27 May 2010 20:17:28 +0000
(20:17 +0000)
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
utils/FileUpdate/FileUpdate.cpp
patch
|
blob
|
history
diff --git
a/utils/FileUpdate/FileUpdate.cpp
b/utils/FileUpdate/FileUpdate.cpp
index
26fd75e
..
00c2091
100644
(file)
--- 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;
}