mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-20 10:42:36 +00:00
Diagnose attempts to update standard output.
llvm-svn: 111649
This commit is contained in:
parent
52e0b1c16a
commit
4d405bbe9f
@ -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 =
|
||||
|
Loading…
x
Reference in New Issue
Block a user