mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-21 03:37:47 +00:00
Fix a buggy conversion from bytecode to bitcode
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36883 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a066e378e9
commit
421e51603a
@ -57,7 +57,7 @@ bool BugDriver::writeProgramToFile(const std::string &Filename,
|
||||
std::ofstream Out(Filename.c_str(), io_mode);
|
||||
if (!Out.good()) return true;
|
||||
|
||||
WriteBitcodeToFile(M, Out);
|
||||
WriteBitcodeToFile(M ? M : Program, Out);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user