diff options
Diffstat (limited to 'utils/FileUpdate/FileUpdate.cpp')
-rw-r--r-- | utils/FileUpdate/FileUpdate.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/utils/FileUpdate/FileUpdate.cpp b/utils/FileUpdate/FileUpdate.cpp index b97d9cf74e..8377aea79e 100644 --- a/utils/FileUpdate/FileUpdate.cpp +++ b/utils/FileUpdate/FileUpdate.cpp @@ -36,6 +36,11 @@ int main(int argc, char **argv) { PrettyStackTraceProgram X(argc, argv); cl::ParseCommandLineOptions(argc, argv); + if (OutputFilename == "-") { + errs() << argv[0] << ": error: Can't update standard output\n"; + return 1; + } + // Get the input data. std::string ErrorStr; MemoryBuffer *In = |