alloca void makes no sense

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15262 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2004-07-27 07:30:02 +00:00
parent 63e9930498
commit 70c7d03d1c

View File

@ -17,6 +17,7 @@
using namespace llvm;
void AllocationInst::init(const Type *Ty, Value *ArraySize, unsigned iTy) {
assert(Ty != Type::VoidTy && "Cannot allocate void elements!");
// ArraySize defaults to 1.
if (!ArraySize) ArraySize = ConstantUInt::get(Type::UIntTy, 1);