From 888912dbe01c715aa5a0ddec19da6ef12f382ebf Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 22 Jan 2002 21:07:24 +0000 Subject: 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 --- tools/llvm-link/llvm-link.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/llvm-link/llvm-link.cpp') diff --git a/tools/llvm-link/llvm-link.cpp b/tools/llvm-link/llvm-link.cpp index db21db0654..4f7530ced3 100644 --- a/tools/llvm-link/llvm-link.cpp +++ b/tools/llvm-link/llvm-link.cpp @@ -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"; -- cgit v1.2.3-18-g5258