File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
llvm/include/llvm/CodeGen Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ class LivePhysRegs {
82
82
// / Adds a physical register and all its sub-registers to the set.
83
83
void addReg (MCPhysReg Reg) {
84
84
assert (TRI && " LivePhysRegs is not initialized." );
85
- assert (Reg <= TRI->getNumRegs () && " Expected a physical register." );
85
+ assert (Reg < TRI->getNumRegs () && " Expected a physical register." );
86
86
for (MCPhysReg SubReg : TRI->subregs_inclusive (Reg))
87
87
LiveRegs.insert (SubReg);
88
88
}
@@ -91,7 +91,7 @@ class LivePhysRegs {
91
91
// / super-registers from the set.
92
92
void removeReg (MCPhysReg Reg) {
93
93
assert (TRI && " LivePhysRegs is not initialized." );
94
- assert (Reg <= TRI->getNumRegs () && " Expected a physical register." );
94
+ assert (Reg < TRI->getNumRegs () && " Expected a physical register." );
95
95
for (MCRegAliasIterator R (Reg, TRI, true ); R.isValid (); ++R)
96
96
LiveRegs.erase ((*R).id ());
97
97
}
You can’t perform that action at this time.
0 commit comments