================ ---------------- thurstond wrote: Instead of convertToIntptr below, would it better to keep CreatePointerCast but check `&& Ty->getElementType()->isPointerTy()` here? https://github.com/llvm/llvm-project/pull/218494