For lshr by 0 bits, just return *this as a short cut. This also prevents
authorReid Spencer <rspencer@reidspencer.com>
Thu, 17 May 2007 06:26:29 +0000 (06:26 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Thu, 17 May 2007 06:26:29 +0000 (06:26 +0000)
commit02ae8b78ff311144bc915a96889db66f46eca208
treeb89435358672fa092e1c7a1d3c02fae999037bd2
parent2f6ba65f0219afca03ea6b9b66634a177996452b
For lshr by 0 bits, just return *this as a short cut. This also prevents
undefined behavior when the width > 64 bits.

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