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:
parent
7c72e1a537
commit
19309fca4b
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user