diff options
author | Chris Lattner <sabre@nondot.org> | 2004-07-27 07:30:02 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-07-27 07:30:02 +0000 |
commit | 70c7d03d1cb26d9d1ca506d78383a6f90e3e838c (patch) | |
tree | 64aa4ef7d786645348b8dbad8e90471be73d1fb7 | |
parent | 63e9930498a0eefaa6cfcca72213ec527cc72198 (diff) | |
download | external_llvm-70c7d03d1cb26d9d1ca506d78383a6f90e3e838c.zip external_llvm-70c7d03d1cb26d9d1ca506d78383a6f90e3e838c.tar.gz external_llvm-70c7d03d1cb26d9d1ca506d78383a6f90e3e838c.tar.bz2 |
alloca void makes no sense
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15262 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/VMCore/iMemory.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/VMCore/iMemory.cpp b/lib/VMCore/iMemory.cpp index 6e6d0e5..3fd0282 100644 --- a/lib/VMCore/iMemory.cpp +++ b/lib/VMCore/iMemory.cpp @@ -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); |