aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-09-11 00:22:39 +0000
committerChris Lattner <sabre@nondot.org>2002-09-11 00:22:39 +0000
commita98bde53a7eb13e02c1dc707dae58aa21fd7ea2c (patch)
tree718ba33598d75a2103846ea20ae0bf7c214feb09 /lib
parent62815d96727768b3bd3178929b3912ecde65c6a2 (diff)
Allocation insts always have one operand
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3677 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/VMCore/iMemory.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/VMCore/iMemory.cpp b/lib/VMCore/iMemory.cpp
index 4f6cefdb26..1738d6e6a2 100644
--- a/lib/VMCore/iMemory.cpp
+++ b/lib/VMCore/iMemory.cpp
@@ -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 {