From: Bob Wilson Date: Sat, 21 Nov 2009 22:39:27 +0000 (+0000) Subject: Avoid a redundant assertion. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=8478a5bcfba9ff80674ee78aa4447597c449fb43;p=oota-llvm.git Avoid a redundant assertion. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89565 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/TableGen/Record.h b/utils/TableGen/Record.h index 752bd0cdfc7..6f7ca82b2e3 100644 --- a/utils/TableGen/Record.h +++ b/utils/TableGen/Record.h @@ -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 {