RegClassOrBank is an object of RegClassOrRegBank, which is defined as
using llvm::RegClassOrRegBank = typedef PointerUnion<const TargetRegisterClass *, const RegisterBank *> }
so control flow can not get here. Use ""llvm_unreachable" here to avoid "null pointer" confusion.
There's a typo here ('Reigister')