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 {
8282 // / Adds a physical register and all its sub-registers to the set.
8383 void addReg (MCPhysReg Reg) {
8484 assert (TRI && " LivePhysRegs is not initialized." );
85- assert (Reg <= TRI->getNumRegs () && " Expected a physical register." );
85+ assert (Reg < TRI->getNumRegs () && " Expected a physical register." );
8686 for (MCPhysReg SubReg : TRI->subregs_inclusive (Reg))
8787 LiveRegs.insert (SubReg);
8888 }
@@ -91,7 +91,7 @@ class LivePhysRegs {
9191 // / super-registers from the set.
9292 void removeReg (MCPhysReg Reg) {
9393 assert (TRI && " LivePhysRegs is not initialized." );
94- assert (Reg <= TRI->getNumRegs () && " Expected a physical register." );
94+ assert (Reg < TRI->getNumRegs () && " Expected a physical register." );
9595 for (MCRegAliasIterator R (Reg, TRI, true ); R.isValid (); ++R)
9696 LiveRegs.erase ((*R).id ());
9797 }
You can’t perform that action at this time.
0 commit comments