diff options
author | Chris Lattner <sabre@nondot.org> | 2002-01-22 21:07:24 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-01-22 21:07:24 +0000 |
commit | 0e11e54d209295faa1fea55794545fffd3a8906c (patch) | |
tree | a37dd8fec36ba3199e0ada11d2f7be76368b7fc9 /llvm/tools/llvm-as/llvm-as.cpp | |
parent | 044b5d90d8da7e444a0bc488db6a80f41bbf5189 (diff) | |
download | bcm5719-llvm-0e11e54d209295faa1fea55794545fffd3a8906c.tar.gz bcm5719-llvm-0e11e54d209295faa1fea55794545fffd3a8906c.zip |
In an amazing fit of stupidity, I flipped the conditional and didn't test
it right. Sheesh :)
llvm-svn: 1550
Diffstat (limited to 'llvm/tools/llvm-as/llvm-as.cpp')
-rw-r--r-- | llvm/tools/llvm-as/llvm-as.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/tools/llvm-as/llvm-as.cpp b/llvm/tools/llvm-as/llvm-as.cpp index 0fbd1e6cd41..59049748354 100644 --- a/llvm/tools/llvm-as/llvm-as.cpp +++ b/llvm/tools/llvm-as/llvm-as.cpp @@ -39,7 +39,7 @@ int main(int argc, char **argv) { cerr << "Here's the assembly:\n" << C.get(); 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!\n" << "Use -f command line argument to force output\n"; @@ -61,7 +61,7 @@ int main(int argc, char **argv) { } OutputFilename += ".bc"; - 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"; |