Fix -Asserts warning.
llvm-svn: 81580
diff --git a/llvm/lib/VMCore/Instructions.cpp b/llvm/lib/VMCore/Instructions.cpp
index 548737c..bf0d042 100644
--- a/llvm/lib/VMCore/Instructions.cpp
+++ b/llvm/lib/VMCore/Instructions.cpp
@@ -516,8 +516,8 @@
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);