mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-27 05:30:49 +00:00
Initialize variable to null so it has a value in the off chance that a
memory buffer couldn't be allocated. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36904 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5d286d8d6f
commit
295b1ceb4f
@ -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
Block a user