Diagnose attempts to update standard output.

llvm-svn: 111649
This commit is contained in:
Dan Gohman 2010-08-20 16:56:11 +00:00
parent 52e0b1c16a
commit 4d405bbe9f

View File

@ -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 =