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 | 888912dbe01c715aa5a0ddec19da6ef12f382ebf (patch) | |
tree | 23cc6040124d6d41d5232f73e21b373c9b9aeec6 /tools/llvm-as | |
parent | e94525575f7b7b25e1fca74aa64c2babdadab4e8 (diff) | |
download | external_llvm-888912dbe01c715aa5a0ddec19da6ef12f382ebf.zip external_llvm-888912dbe01c715aa5a0ddec19da6ef12f382ebf.tar.gz external_llvm-888912dbe01c715aa5a0ddec19da6ef12f382ebf.tar.bz2 |
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
Diffstat (limited to 'tools/llvm-as')
-rw-r--r-- | tools/llvm-as/as.cpp | 4 | ||||
-rw-r--r-- | tools/llvm-as/llvm-as.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/tools/llvm-as/as.cpp b/tools/llvm-as/as.cpp index 0fbd1e6..5904974 100644 --- a/tools/llvm-as/as.cpp +++ b/tools/llvm-as/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"; diff --git a/tools/llvm-as/llvm-as.cpp b/tools/llvm-as/llvm-as.cpp index 0fbd1e6..5904974 100644 --- a/tools/llvm-as/llvm-as.cpp +++ b/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"; |