Initialize variable to null so it has a value in the off chance that a

memory buffer couldn't be allocated.

llvm-svn: 36904
This commit is contained in:
Reid Spencer 2007-05-07 18:50:07 +00:00
parent 100984c727
commit c32d55e17c
1 changed files with 1 additions and 1 deletions

View File

@ -117,7 +117,7 @@ int main(int argc, char **argv) {
// Read in the bytecode file...
std::string ErrorMessage;
Module *M;
Module *M = 0;
if (MemoryBuffer *Buffer = MemoryBuffer::getFileOrSTDIN(BytecodeFile,
&ErrorMessage)) {
M = ParseBitcodeFile(Buffer, &ErrorMessage);