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 | 295b1ceb4f96ca80ed2fc8d1a9fcfc4950dccdea (patch) | |
tree | fbc5f1a89a94b1f2da4b7d367d7eafb79ddce31c /tools | |
parent | 5d286d8d6f49d9911f5a40ac91f723cd20874e53 (diff) | |
download | external_llvm-295b1ceb4f96ca80ed2fc8d1a9fcfc4950dccdea.zip external_llvm-295b1ceb4f96ca80ed2fc8d1a9fcfc4950dccdea.tar.gz external_llvm-295b1ceb4f96ca80ed2fc8d1a9fcfc4950dccdea.tar.bz2 |
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
Diffstat (limited to 'tools')
-rw-r--r-- | tools/llvm-prof/llvm-prof.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/llvm-prof/llvm-prof.cpp b/tools/llvm-prof/llvm-prof.cpp index f88f1fc..c85b0da 100644 --- a/tools/llvm-prof/llvm-prof.cpp +++ b/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); |