diff options
author | Sylvestre Ledru <sylvestre@debian.org> | 2013-09-28 15:35:02 +0000 |
---|---|---|
committer | Sylvestre Ledru <sylvestre@debian.org> | 2013-09-28 15:35:02 +0000 |
commit | 30eff98e7e04e333618195ac2eec153f7591a471 (patch) | |
tree | 1be11f17d4a958ab2fb5ae3cd618402ff3ac8c48 /lldb/source | |
parent | d28b99374f174cc2da6657c876ab4f350e6e0fba (diff) | |
download | bcm5719-llvm-30eff98e7e04e333618195ac2eec153f7591a471.tar.gz bcm5719-llvm-30eff98e7e04e333618195ac2eec153f7591a471.zip |
Remove useless declaration. If match_type == eNameMatchIgnore, we already left this function at the beginning of the method. Found by coverity. Fixes CID 1094188
llvm-svn: 191617
Diffstat (limited to 'lldb/source')
-rw-r--r-- | lldb/source/lldb.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lldb/source/lldb.cpp b/lldb/source/lldb.cpp index aefa5516637..b9b37aa675f 100644 --- a/lldb/source/lldb.cpp +++ b/lldb/source/lldb.cpp @@ -408,8 +408,6 @@ lldb_private::NameMatches (const char *name, llvm::StringRef match_sref(match); switch (match_type) { - case eNameMatchIgnore: - return true; case eNameMatchEquals: return name_sref == match_sref; case eNameMatchContains: return name_sref.find (match_sref) != llvm::StringRef::npos; case eNameMatchStartsWith: return name_sref.startswith (match_sref); |