diff --git a/utils/FileUpdate/FileUpdate.cpp b/utils/FileUpdate/FileUpdate.cpp index 26fd75ef68b..00c20915fc9 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; }