Use isUnitValue() instead of getZExtValue() == 1 which will prevent an
authorReid Spencer <rspencer@reidspencer.com>
Thu, 1 Mar 2007 21:51:23 +0000 (21:51 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Thu, 1 Mar 2007 21:51:23 +0000 (21:51 +0000)
commit4da0451821732e20d132e612ba8852a1c6498fab
tree18bf1f32ddd0193f02f049a0ca672d011638efe8
parent37eeaa729bc70258166a675ee00bbe95e608d519
Use isUnitValue() instead of getZExtValue() == 1 which will prevent an
assert if the ConstantInt's value is large.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34814 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/Reassociate.cpp