summaryrefslogtreecommitdiffstats
path: root/lldb/source
diff options
context:
space:
mode:
authorSylvestre Ledru <sylvestre@debian.org>2013-09-28 15:35:02 +0000
committerSylvestre Ledru <sylvestre@debian.org>2013-09-28 15:35:02 +0000
commit30eff98e7e04e333618195ac2eec153f7591a471 (patch)
tree1be11f17d4a958ab2fb5ae3cd618402ff3ac8c48 /lldb/source
parentd28b99374f174cc2da6657c876ab4f350e6e0fba (diff)
downloadbcm5719-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.cpp2
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);
OpenPOWER on IntegriCloud