1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00

Add an assertion.

llvm-svn: 7326
This commit is contained in:
Vikram S. Adve 2003-07-25 20:58:57 +00:00
parent 7c72e1a537
commit 19309fca4b

View File

@ -449,9 +449,8 @@ public:
bool isRegUsed(int regNum) const {
return regsUsed.find(regNum) != regsUsed.end();
}
// insertusedreg - Add a register to the Used registers set...
void insertUsedReg(unsigned Reg) {
assert(((int) Reg) >= 0 && "Invalid register being marked as used");
regsUsed.insert((int) Reg);
}