[llvm-commits] [llvm] r114828 - /llvm/trunk/lib/VMCore/Instructions.cpp

Dan Gohman gohman at apple.com
Mon Sep 27 08:15:44 PDT 2010


Author: djg
Date: Mon Sep 27 10:15:44 2010
New Revision: 114828

URL: http://llvm.org/viewvc/llvm-project?rev=114828&view=rev
Log:
Make this code 65-bit clean.

Modified:
    llvm/trunk/lib/VMCore/Instructions.cpp

Modified: llvm/trunk/lib/VMCore/Instructions.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/Instructions.cpp?rev=114828&r1=114827&r2=114828&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/Instructions.cpp (original)
+++ llvm/trunk/lib/VMCore/Instructions.cpp Mon Sep 27 10:15:44 2010
@@ -899,7 +899,7 @@
 
 bool AllocaInst::isArrayAllocation() const {
   if (ConstantInt *CI = dyn_cast<ConstantInt>(getOperand(0)))
-    return CI->getZExtValue() != 1;
+    return !CI->isOne();
   return true;
 }
 





More information about the llvm-commits mailing list