diff options
author | Chris Lattner <sabre@nondot.org> | 2002-01-22 21:07:24 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-01-22 21:07:24 +0000 |
commit | 0e11e54d209295faa1fea55794545fffd3a8906c (patch) | |
tree | a37dd8fec36ba3199e0ada11d2f7be76368b7fc9 /llvm/tools/llvm-dis/dis.cpp | |
parent | 044b5d90d8da7e444a0bc488db6a80f41bbf5189 (diff) | |
download | bcm5719-llvm-0e11e54d209295faa1fea55794545fffd3a8906c.tar.gz bcm5719-llvm-0e11e54d209295faa1fea55794545fffd3a8906c.zip |
In an amazing fit of stupidity, I flipped the conditional and didn't test
it right. Sheesh :)
llvm-svn: 1550
Diffstat (limited to 'llvm/tools/llvm-dis/dis.cpp')
-rw-r--r-- | llvm/tools/llvm-dis/dis.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/tools/llvm-dis/dis.cpp b/llvm/tools/llvm-dis/dis.cpp index 55e8d5d6690..11e67c4fe8b 100644 --- a/llvm/tools/llvm-dis/dis.cpp +++ b/llvm/tools/llvm-dis/dis.cpp @@ -58,7 +58,7 @@ int main(int argc, char **argv) { } if (OutputFilename != "") { // Specified an output filename? - if (!Force && !std::ifstream(OutputFilename.c_str())) { + if (!Force && std::ifstream(OutputFilename.c_str())) { // If force is not specified, make sure not to overwrite a file! cerr << "Error opening '" << OutputFilename << "': File exists! Sending to standard output.\n"; @@ -79,7 +79,7 @@ int main(int argc, char **argv) { } OutputFilename += ".ll"; - if (!Force && !std::ifstream(OutputFilename.c_str())) { + if (!Force && std::ifstream(OutputFilename.c_str())) { // If force is not specified, make sure not to overwrite a file! cerr << "Error opening '" << OutputFilename << "': File exists! Sending to standard output.\n"; |