Changes in directory llvm/tools/llvm-prof:
llvm-prof.cpp updated: 1.34 -> 1.35 --- Log message: Initialize variable to null so it has a value in the off chance that a memory buffer couldn't be allocated. --- Diffs of the changes: (+1 -1) llvm-prof.cpp | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: llvm/tools/llvm-prof/llvm-prof.cpp diff -u llvm/tools/llvm-prof/llvm-prof.cpp:1.34 llvm/tools/llvm-prof/llvm-prof.cpp:1.35 --- llvm/tools/llvm-prof/llvm-prof.cpp:1.34 Sun May 6 18:45:49 2007 +++ llvm/tools/llvm-prof/llvm-prof.cpp Mon May 7 13:50:07 2007 @@ -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); _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits