Partial progress towards removing in-tree uses of getPointerTo(),
by employing the following options:
- Drop the call entirely if the sole purpose of it is to support a no-op bitcast (remove the no-op bitcast as well).
- Replace with PointerType::get()/PointerType::getUnqual()
This is a NFC cleanup effort.
Given that this line is guarded by if (!PtrTy->isOpaque(),
I wasn't sure whether using PointerType::getUnqual(LLVMContext&) here is acceptable.
For now, I chose to play safe and just used PointerType::getUnqual(Type *) here.