forked from OSchip/llvm-project
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:
parent
100984c727
commit
c32d55e17c
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue