mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-27 14:45:50 +00:00
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:
parent
63e9930498
commit
70c7d03d1c
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user