forked from OSchip/llvm-project
Add a missing assertion, the null register has no register units.
llvm-svn: 170916
This commit is contained in:
parent
7b5bfc795a
commit
0edb164723
|
@ -479,6 +479,7 @@ public:
|
|||
/// MCRegUnitIterator - Create an iterator that traverses the register units
|
||||
/// in Reg.
|
||||
MCRegUnitIterator(unsigned Reg, const MCRegisterInfo *MCRI) {
|
||||
assert(Reg && "Null register has no regunits");
|
||||
// Decode the RegUnits MCRegisterDesc field.
|
||||
unsigned RU = MCRI->get(Reg).RegUnits;
|
||||
unsigned Scale = RU & 15;
|
||||
|
|
Loading…
Reference in New Issue