From: Dan Gohman Date: Mon, 27 Sep 2010 15:15:44 +0000 (+0000) Subject: Make this code 65-bit clean. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=e0214d5b197aad569343665f5cf6b244747fe71c;p=oota-llvm.git Make this code 65-bit clean. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114828 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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; }