mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Add a missing assertion, the null register has no register units.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@170916 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4716cf4981
commit
70fe6ecb6d
@ -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
Block a user