Fix a crash in APInt::lshr when shiftAmt > BitWidth.
authorChad Rosier <mcrosier@apple.com>
Fri, 8 Jun 2012 18:04:52 +0000 (18:04 +0000)
committerChad Rosier <mcrosier@apple.com>
Fri, 8 Jun 2012 18:04:52 +0000 (18:04 +0000)
commit28dd960cd1c346c5beef4585d6ea68ae31be0faf
tree0186b83e858f8f1927c850aa1012ad707a9fbc03
parentc36d033c08c6148846f61cc7aee4fe0f523af1e5
Fix a crash in APInt::lshr when shiftAmt > BitWidth.
Patch by James Benton <jbenton@vmware.com>.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158213 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Support/APInt.cpp
test/CodeGen/Generic/2012-06-08-APIntCrash.ll [new file with mode: 0644]