projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
4dbd074
)
Fix -Asserts warning.
author
Daniel Dunbar
<daniel@zuster.org>
Fri, 11 Sep 2009 22:07:31 +0000
(22:07 +0000)
committer
Daniel Dunbar
<daniel@zuster.org>
Fri, 11 Sep 2009 22:07:31 +0000
(22:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81580
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/VMCore/Instructions.cpp
patch
|
blob
|
history
diff --git
a/lib/VMCore/Instructions.cpp
b/lib/VMCore/Instructions.cpp
index 548737ccad891d5ba426736d93e27e6b0fb9e542..bf0d0427f37ac03d7274a2c581aba791f1c1ea1e 100644
(file)
--- a/
lib/VMCore/Instructions.cpp
+++ b/
lib/VMCore/Instructions.cpp
@@
-516,8
+516,8
@@
static Value *createMalloc(Instruction *InsertBefore, BasicBlock *InsertAtEnd,
MCall->setTailCall();
// Create a cast instruction to convert to the right type...
- const Type* VoidT = Type::getVoidTy(BB->getContext());
-
assert(MCall->getType() != VoidT &&
"Malloc has void return type");
+ assert(MCall->getType() != Type::getVoidTy(BB->getContext()) &&
+
"Malloc has void return type");
Value *MCast;
if (InsertBefore)
MCast = new BitCastInst(MCall, AllocPtrType, NameStr, InsertBefore);