Initial Checkin of gccld
[oota-llvm.git] / tools / llvm-link / llvm-link.cpp
index db21db06544038c527d841c02a97c4ace8644031..4f7530ced3e4e7f84305ef3cd56bcd483a670dde 100644 (file)
@@ -111,7 +111,7 @@ int main(int argc, char **argv) {
 
   ostream *Out = &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";