llvm.org GIT mirror llvm / e7b67d0
Diagnose attempts to update standard output. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111649 91177308-0d34-0410-b5e6-96231b3b80d8 Dan Gohman 9 years ago
1 changed file(s) with 5 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
3434 sys::PrintStackTraceOnErrorSignal();
3535 PrettyStackTraceProgram X(argc, argv);
3636 cl::ParseCommandLineOptions(argc, argv);
37
38 if (OutputFilename == "-") {
39 errs() << argv[0] << ": error: Can't update standard output\n";
40 return 1;
41 }
3742
3843 // Get the input data.
3944 std::string ErrorStr;