mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
Allocation insts always have one operand
llvm-svn: 3677
This commit is contained in:
parent
c882973bf7
commit
1a91b112b7
@ -24,8 +24,7 @@ AllocationInst::AllocationInst(const Type *Ty, Value *ArraySize, unsigned iTy,
|
||||
}
|
||||
|
||||
bool AllocationInst::isArrayAllocation() const {
|
||||
return getNumOperands() == 1 &&
|
||||
getOperand(0) != ConstantUInt::get(Type::UIntTy, 1);
|
||||
return getOperand(0) != ConstantUInt::get(Type::UIntTy, 1);
|
||||
}
|
||||
|
||||
const Type *AllocationInst::getAllocatedType() const {
|
||||
|
Loading…
Reference in New Issue
Block a user