This fixes some GlobalISel regression tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@283936
91177308-0d34-0410-b5e6-
96231b3b80d8
// Virtual registers may have a size with GlobalISel.
if (!TargetRegisterInfo::isVirtualRegister(Reg))
return error("unexpected size on physical register");
- if (RegInfo->Kind != VRegInfo::GENERIC)
+ if (RegInfo->Kind != VRegInfo::GENERIC &&
+ RegInfo->Kind != VRegInfo::REGBANK)
return error("unexpected size on non-generic virtual register");
LLT Ty;