Fix shl to produce the correct result when the bitwidth is > 64 and the
authorReid Spencer <rspencer@reidspencer.com>
Sat, 12 May 2007 18:01:57 +0000 (18:01 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Sat, 12 May 2007 18:01:57 +0000 (18:01 +0000)
commit92c728350011c7d7df29d42166ad3436f1285249
tree5a7674325bd4dbed43124dd225b9a6f7440325ef
parent45d6764ca1161420773693d21e9581f847e2cdda
Fix shl to produce the correct result when the bitwidth is > 64 and the
shift amount is 0. Previously this code would do a lshr by the bit width
which can lead to incorrect results.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37010 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Support/APInt.cpp