aboutsummaryrefslogtreecommitdiffstats
path: root/lib/VMCore
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-09-27 15:15:44 +0000
committerDan Gohman <gohman@apple.com>2010-09-27 15:15:44 +0000
commite0214d5b197aad569343665f5cf6b244747fe71c (patch)
tree18f81e2a48c7751946ed17ef88017732bf022982 /lib/VMCore
parent640e74207eb75ebc1f22b3cf1c1c39b32bbf232d (diff)
downloadexternal_llvm-e0214d5b197aad569343665f5cf6b244747fe71c.zip
external_llvm-e0214d5b197aad569343665f5cf6b244747fe71c.tar.gz
external_llvm-e0214d5b197aad569343665f5cf6b244747fe71c.tar.bz2
Make this code 65-bit clean.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114828 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
-rw-r--r--lib/VMCore/Instructions.cpp2
1 files changed, 1 insertions, 1 deletions
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<ConstantInt>(getOperand(0)))
- return CI->getZExtValue() != 1;
+ return !CI->isOne();
return true;
}