In an amazing fit of stupidity, I flipped the conditional and didn't test
it right.  Sheesh :)


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1550 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/tools/llvm-dis/dis.cpp b/tools/llvm-dis/dis.cpp
index 55e8d5d..11e67c4 100644
--- a/tools/llvm-dis/dis.cpp
+++ b/tools/llvm-dis/dis.cpp
@@ -58,7 +58,7 @@
   }
   
   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 @@
       }
       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";
diff --git a/tools/llvm-dis/llvm-dis.cpp b/tools/llvm-dis/llvm-dis.cpp
index 55e8d5d..11e67c4 100644
--- a/tools/llvm-dis/llvm-dis.cpp
+++ b/tools/llvm-dis/llvm-dis.cpp
@@ -58,7 +58,7 @@
   }
   
   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 @@
       }
       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";