Convert to use new Pass framework...
[oota-llvm.git] / tools / llvm-dis / llvm-dis.cpp
index 55e8d5d6690d8269f161e15221eb7e0fdaeb0d38..11e67c4fe8b076005ad415392d11703bdbd06307 100644 (file)
@@ -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";