diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2007-05-07 18:50:07 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2007-05-07 18:50:07 +0000 |
commit | c32d55e17c8fc028facf726bb4365a8e23122174 (patch) | |
tree | 84da2d09084c1f00bb065ee06f76b884cee21f47 /llvm/tools/llvm-prof/llvm-prof.cpp | |
parent | 100984c72795e1dba4a217d043be19a99a8c9aaf (diff) | |
download | bcm5719-llvm-c32d55e17c8fc028facf726bb4365a8e23122174.tar.gz bcm5719-llvm-c32d55e17c8fc028facf726bb4365a8e23122174.zip |
Initialize variable to null so it has a value in the off chance that a
memory buffer couldn't be allocated.
llvm-svn: 36904
Diffstat (limited to 'llvm/tools/llvm-prof/llvm-prof.cpp')
-rw-r--r-- | llvm/tools/llvm-prof/llvm-prof.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/llvm-prof/llvm-prof.cpp b/llvm/tools/llvm-prof/llvm-prof.cpp index f88f1fcc028..c85b0da1bc6 100644 --- a/llvm/tools/llvm-prof/llvm-prof.cpp +++ b/llvm/tools/llvm-prof/llvm-prof.cpp @@ -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); |