mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-30 04:35:00 +00:00
Add an assertion.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7326 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1e4bed7a41
commit
b1e6f05110
@ -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…
x
Reference in New Issue
Block a user