mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-15 05:24:01 +00:00
Fix a bug found by inspection.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28297 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -52,7 +52,11 @@ bool BugDriver::writeProgramToFile(const std::string &Filename,
|
|||||||
std::ios::binary;
|
std::ios::binary;
|
||||||
std::ofstream Out(Filename.c_str(), io_mode);
|
std::ofstream Out(Filename.c_str(), io_mode);
|
||||||
if (!Out.good()) return true;
|
if (!Out.good()) return true;
|
||||||
WriteBytecodeToFile(M ? M : Program, Out, /*compression=*/true);
|
try {
|
||||||
|
WriteBytecodeToFile(M ? M : Program, Out, /*compression=*/true);
|
||||||
|
} catch (...) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user