[Assignment Tracking] Remove assertion from DbgAssignIntrinsic::setAddress
authorOCHyams <orlando.hyams@sony.com>
Fri, 31 Mar 2023 13:17:52 +0000 (14:17 +0100)
committerOCHyams <orlando.hyams@sony.com>
Fri, 31 Mar 2023 13:22:25 +0000 (14:22 +0100)
commit42b44fef7611cb1bfe851533f27e4be67e55571f
tree4ee6962aeb91172f4e131626280234cbf976c687
parentd29f70670db8ca43a49b6df9112035dc4b646182
[Assignment Tracking] Remove assertion from DbgAssignIntrinsic::setAddress

Follow up to https://reviews.llvm.org/D146987.

Remove assertion that the Value must be a pointer type. This fires in
real-world examples e.g. by codegenprepare introducing ptrtoint conversions.

The buildbots have not caught up yet but without this change the test
compiler-rt/test/ubsan/TestCases/TypeCheck/vptr.cpp fails with an ICE.
llvm/lib/IR/IntrinsicInst.cpp