diff options
author | Bob Wilson <bob.wilson@apple.com> | 2009-11-21 22:39:27 +0000 |
---|---|---|
committer | Bob Wilson <bob.wilson@apple.com> | 2009-11-21 22:39:27 +0000 |
commit | 8478a5bcfba9ff80674ee78aa4447597c449fb43 (patch) | |
tree | 09570f3ac9dc9a49514a484799deba22793a923e /utils | |
parent | f3b33d0b2a50777ddb467e8adefbb018b16570d2 (diff) | |
download | external_llvm-8478a5bcfba9ff80674ee78aa4447597c449fb43.zip external_llvm-8478a5bcfba9ff80674ee78aa4447597c449fb43.tar.gz external_llvm-8478a5bcfba9ff80674ee78aa4447597c449fb43.tar.bz2 |
Avoid a redundant assertion.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89565 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r-- | utils/TableGen/Record.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/utils/TableGen/Record.h b/utils/TableGen/Record.h index 752bd0c..6f7ca82 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 { |