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:
Bob Wilson 2009-11-21 22:39:27 +00:00
parent f3b33d0b2a
commit 8478a5bcfb

View File

@ -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 {