diff --git a/lib/VMCore/Instructions.cpp b/lib/VMCore/Instructions.cpp index 401802ed13d..7f8df58db52 100644 --- a/lib/VMCore/Instructions.cpp +++ b/lib/VMCore/Instructions.cpp @@ -899,7 +899,7 @@ void AllocaInst::setAlignment(unsigned Align) { bool AllocaInst::isArrayAllocation() const { if (ConstantInt *CI = dyn_cast(getOperand(0))) - return CI->getZExtValue() != 1; + return !CI->isOne(); return true; }