diff options
| author | Daniel Dunbar <daniel@zuster.org> | 2009-09-11 22:07:31 +0000 |
|---|---|---|
| committer | Daniel Dunbar <daniel@zuster.org> | 2009-09-11 22:07:31 +0000 |
| commit | b918900995da92dda69f6cd808148e03c3016a2c (patch) | |
| tree | 56a53ed898b2631bae1b2ccf2f14dcf88441bda8 /llvm/lib | |
| parent | 7020eae07673210f88e0e7b382284427db555548 (diff) | |
| download | bcm5719-llvm-b918900995da92dda69f6cd808148e03c3016a2c.tar.gz bcm5719-llvm-b918900995da92dda69f6cd808148e03c3016a2c.zip | |
Fix -Asserts warning.
llvm-svn: 81580
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/VMCore/Instructions.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/VMCore/Instructions.cpp b/llvm/lib/VMCore/Instructions.cpp index 548737ccad8..bf0d0427f37 100644 --- a/llvm/lib/VMCore/Instructions.cpp +++ b/llvm/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); |

