mirror of
https://github.com/RPCS3/llvm.git
synced 2025-04-15 04:20:27 +00:00
Allocation insts always have one operand
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3677 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
62815d9672
commit
a98bde53a7
@ -24,8 +24,7 @@ AllocationInst::AllocationInst(const Type *Ty, Value *ArraySize, unsigned iTy,
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool AllocationInst::isArrayAllocation() const {
|
bool AllocationInst::isArrayAllocation() const {
|
||||||
return getNumOperands() == 1 &&
|
return getOperand(0) != ConstantUInt::get(Type::UIntTy, 1);
|
||||||
getOperand(0) != ConstantUInt::get(Type::UIntTy, 1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const Type *AllocationInst::getAllocatedType() const {
|
const Type *AllocationInst::getAllocatedType() const {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user