diff options
-rw-r--r-- | lib/VMCore/iMemory.cpp | 3 |
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 { |