Don't crash printing the asm for a ConstantExpr PtrToInt just because the int
authorNick Lewycky <nicholas@mxc.ca>
Fri, 8 Aug 2008 06:34:07 +0000 (06:34 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Fri, 8 Aug 2008 06:34:07 +0000 (06:34 +0000)
commitd6227385fc499a8b8bc23766735f1d809d194378
treeffe502d87a5771aa7e3bf3a21861d20588cffa21
parent65ad452536526fe9a80023abc3703a7cc7987858
Don't crash printing the asm for a ConstantExpr PtrToInt just because the int
is narrower than the pointer. This testcase emits:

  .byte (((17) - 16) & 255)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54517 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/AsmPrinter.cpp
test/CodeGen/Generic/2008-08-07-PtrToInt-SmallerInt.ll [new file with mode: 0644]