mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
Avoid a redundant assertion.
llvm-svn: 89565
This commit is contained in:
parent
d4603a5c4e
commit
35c5b307d6
@ -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…
Reference in New Issue
Block a user