mirror of
https://github.com/RPCS3/llvm.git
synced 2025-04-03 13:51:39 +00:00
Diagnose attempts to update standard output.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111649 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7a4575e26e
commit
e7b67d0e94
@ -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