1
0
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:
Chris Lattner 2002-09-11 00:22:39 +00:00
parent c882973bf7
commit 1a91b112b7

View File

@ -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 {