TargetRegisterInfo::getPointerRegClass is used, directly and indirectly, by several passes and CodeGen so it should be implemented (overridden) for RISC-V too.
@reshabh This will probably affect your GSoC work implementing 64-bit pointers on RV32. Not sure what the status of that is and how you want to proceed, but I imagine you'll just tweak this method once this patch is committed?