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:
Chris Lattner 2007-05-06 19:43:09 +00:00
parent a066e378e9
commit 421e51603a

View File

@ -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;
}