mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-21 03:32:21 +00:00
Avoid a redundant assertion.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89565 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f3b33d0b2a
commit
8478a5bcfb
@ -1276,13 +1276,12 @@ public:
|
||||
}
|
||||
|
||||
void removeValue(StringRef Name) {
|
||||
assert(getValue(Name) && "Cannot remove an entry that does not exist!");
|
||||
for (unsigned i = 0, e = Values.size(); i != e; ++i)
|
||||
if (Values[i].getName() == Name) {
|
||||
Values.erase(Values.begin()+i);
|
||||
return;
|
||||
}
|
||||
assert(0 && "Name does not exist in record!");
|
||||
assert(0 && "Cannot remove an entry that does not exist!");
|
||||
}
|
||||
|
||||
bool isSubClassOf(const Record *R) const {
|
||||
|
Loading…
x
Reference in New Issue
Block a user