mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 22:24:07 +00:00
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
This commit is contained in:
@ -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";
|
||||
|
Reference in New Issue
Block a user