diff options
Diffstat (limited to 'tools/opt/opt.cpp')
-rw-r--r-- | tools/opt/opt.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/opt/opt.cpp b/tools/opt/opt.cpp index 6cbf25111b..f9f4ba08a1 100644 --- a/tools/opt/opt.cpp +++ b/tools/opt/opt.cpp @@ -127,7 +127,7 @@ int main(int argc, char **argv) { std::ostream *Out = &std::cout; // Default to printing to stdout... if (OutputFilename != "") { - 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!\n" << "Use -f command line argument to force output\n"; |