In isUIntN, make sure N is less than 64 before using in a shift to avoid undefined...
authorCraig Topper <craig.topper@gmail.com>
Sat, 10 Oct 2015 18:54:26 +0000 (18:54 +0000)
committerCraig Topper <craig.topper@gmail.com>
Sat, 10 Oct 2015 18:54:26 +0000 (18:54 +0000)
commit41f6283c479aeff95296bae207d6ba3e717f1662
tree8c6393bebb43a5cc111e962c97be0746b6eb6996
parentef4e0adfe75684bf9017c8a9c5309e77b8aa3b7b
In isUIntN, make sure N is less than 64 before using in a shift to avoid undefined behavior. Also change it to use the same formula as the template version which I think results in less math in compiled code.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@249951 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/MathExtras.h