Make this code 65-bit clean.
authorDan Gohman <gohman@apple.com>
Mon, 27 Sep 2010 15:15:44 +0000 (15:15 +0000)
committerDan Gohman <gohman@apple.com>
Mon, 27 Sep 2010 15:15:44 +0000 (15:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114828 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/Instructions.cpp

index 401802ed13d5e633617ffc43c075d22d7a337e98..7f8df58db52edc401a35710634ee3dd4611b632b 100644 (file)
@@ -899,7 +899,7 @@ void AllocaInst::setAlignment(unsigned Align) {
 
 bool AllocaInst::isArrayAllocation() const {
   if (ConstantInt *CI = dyn_cast<ConstantInt>(getOperand(0)))
-    return CI->getZExtValue() != 1;
+    return !CI->isOne();
   return true;
 }