projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d286d8
)
Initialize variable to null so it has a value in the off chance that a
author
Reid Spencer
<rspencer@reidspencer.com>
Mon, 7 May 2007 18:50:07 +0000
(18:50 +0000)
committer
Reid Spencer
<rspencer@reidspencer.com>
Mon, 7 May 2007 18:50:07 +0000
(18:50 +0000)
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
patch
|
blob
|
history
diff --git
a/tools/llvm-prof/llvm-prof.cpp
b/tools/llvm-prof/llvm-prof.cpp
index f88f1fcc02846d040eac6a9193dccc74316e473d..c85b0da1bc6cdb06618f2983934c2094547427d6 100644
(file)
--- 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);