summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore/Instructions.cpp
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
commit9a1b8598efc8f9482ba76d4ba77e9c20e16d175d (patch)
tree5e14b79909b26c1911fe03008a2c96dd099200cf /llvm/lib/VMCore/Instructions.cpp
parent58a9d28a683b4e1cfd15df68c0b1db3619aae5d9 (diff)
downloadbcm5719-llvm-9a1b8598efc8f9482ba76d4ba77e9c20e16d175d.tar.gz
bcm5719-llvm-9a1b8598efc8f9482ba76d4ba77e9c20e16d175d.zip
Make this code 65-bit clean.
llvm-svn: 114828
Diffstat (limited to 'llvm/lib/VMCore/Instructions.cpp')
-rw-r--r--llvm/lib/VMCore/Instructions.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/VMCore/Instructions.cpp b/llvm/lib/VMCore/Instructions.cpp
index 401802ed13d..7f8df58db52 100644
--- a/llvm/lib/VMCore/Instructions.cpp
+++ b/llvm/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;
}
OpenPOWER on IntegriCloud