Fix a silly off by one.

llvm-svn: 135842
This commit is contained in:
Benjamin Kramer 2011-07-23 03:04:46 +00:00
parent 73ee74c6a9
commit 8957aaa2d2
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ public:
bool contains(unsigned Reg) const {
unsigned InByte = Reg % 8;
unsigned Byte = Reg / 8;
if (Byte > RegSetSize)
if (Byte >= RegSetSize)
return false;
return (RegSet[Byte] & (1 << InByte)) != 0;
}