From 295b1ceb4f96ca80ed2fc8d1a9fcfc4950dccdea Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Mon, 7 May 2007 18:50:07 +0000 Subject: 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 --- tools/llvm-prof/llvm-prof.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/llvm-prof') diff --git a/tools/llvm-prof/llvm-prof.cpp b/tools/llvm-prof/llvm-prof.cpp index f88f1fcc02..c85b0da1bc 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); -- cgit v1.2.3