[Lldb-commits] [lldb] r191617 - Remove useless declaration. If match_type == eNameMatchIgnore, we already left this function at the beginning of the method. Found by coverity. Fixes CID 1094188
Sylvestre Ledru
sylvestre at debian.org
Sat Sep 28 08:35:02 PDT 2013
Author: sylvestre
Date: Sat Sep 28 10:35:02 2013
New Revision: 191617
URL: http://llvm.org/viewvc/llvm-project?rev=191617&view=rev
Log:
Remove useless declaration. If match_type == eNameMatchIgnore, we already left this function at the beginning of the method. Found by coverity. Fixes CID 1094188
Modified:
lldb/trunk/source/lldb.cpp
Modified: lldb/trunk/source/lldb.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/lldb.cpp?rev=191617&r1=191616&r2=191617&view=diff
==============================================================================
--- lldb/trunk/source/lldb.cpp (original)
+++ lldb/trunk/source/lldb.cpp Sat Sep 28 10:35:02 2013
@@ -408,8 +408,6 @@ lldb_private::NameMatches (const char *n
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);
More information about the lldb-commits
mailing list