diff options
Diffstat (limited to 'tools/dis/dis.cpp')
-rw-r--r-- | tools/dis/dis.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/dis/dis.cpp b/tools/dis/dis.cpp index 55e8d5d669..11e67c4fe8 100644 --- a/tools/dis/dis.cpp +++ b/tools/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"; |