From a98bde53a7eb13e02c1dc707dae58aa21fd7ea2c Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 11 Sep 2002 00:22:39 +0000 Subject: [PATCH] Allocation insts always have one operand git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3677 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/VMCore/iMemory.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/VMCore/iMemory.cpp b/lib/VMCore/iMemory.cpp index 4f6cefdb261..1738d6e6a2f 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 {