If we had some source value we could infer an address space from that
went through a ptrtoint/inttoptr pair, this would fail since bitcast
can't change the address space.
Fixes issue 53665.
Differential D119306
InferAddressSpaces: Fix assert on inferred source for inttoptr/ptrtoint arsenm on Feb 8 2022, 6:00 PM. Authored by
Details
Diff Detail Event Timeline
|
Doesn't this break if we require both, an AS and a bitcast?
Wouldn't BitCastInst::CreatePointerBitCastOrAddrSpaceCast be a more generic (and shorter) choice here?