From e0214d5b197aad569343665f5cf6b244747fe71c Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Mon, 27 Sep 2010 15:15:44 +0000 Subject: Make this code 65-bit clean. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114828 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/VMCore/Instructions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/VMCore') diff --git a/lib/VMCore/Instructions.cpp b/lib/VMCore/Instructions.cpp index 401802e..7f8df58 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; } -- cgit v1.1