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 {