Initialize variable to null so it has a value in the off chance that a
memory buffer couldn't be allocated.
llvm-svn: 36904
diff --git a/llvm/tools/llvm-prof/llvm-prof.cpp b/llvm/tools/llvm-prof/llvm-prof.cpp
index f88f1fc..c85b0da 100644
--- a/llvm/tools/llvm-prof/llvm-prof.cpp
+++ b/llvm/tools/llvm-prof/llvm-prof.cpp
@@ -117,7 +117,7 @@
// Read in the bytecode file...
std::string ErrorMessage;
- Module *M;
+ Module *M = 0;
if (MemoryBuffer *Buffer = MemoryBuffer::getFileOrSTDIN(BytecodeFile,
&ErrorMessage)) {
M = ParseBitcodeFile(Buffer, &ErrorMessage);