[llvm-commits] PATCH: Fix crash in APInt.cpp
Chad Rosier
mcrosier at apple.com
Fri Jun 8 11:06:37 PDT 2012
Thanks, James. Committed revision 158213.
Chad
On Jun 8, 2012, at 6:18 AM, James Benton wrote:
> Fixed the following crash in llvm::APInt::lshr when shiftAmt > BitWidth.
> Added a test which causes this crash.
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x0000000000ff5c9d in llvm::APInt::lshr (this=0x7fffffffc880, shiftAmt=160)
> at /home/james/private_vmware/llvm/lib/Support/APInt.cpp:1173
> 1173 (pVal[i+offset+1] << (APINT_BITS_PER_WORD - wordShift));
>
>
> #0 0x0000000000ff5c9d in llvm::APInt::lshr (this=0x7fffffffc870, shiftAmt=160)
> at llvm/lib/Support/APInt.cpp:1173
> #1 0x00000000009168d2 in (anonymous namespace)::DAGCombiner::visitAND (this=0x7fffffffcf90, N=0x181b3c0)
> at llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:2496
> <diff.txt>_______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
More information about the llvm-commits
mailing list