[Lldb-commits] [lldb] r192595 - Revert my commit 191617. It added a clang warning (Thanks to Ed Maste). Add a comment
Sylvestre Ledru
sylvestre at debian.org
Mon Oct 14 07:06:29 PDT 2013
Author: sylvestre
Date: Mon Oct 14 09:06:28 2013
New Revision: 192595
URL: http://llvm.org/viewvc/llvm-project?rev=192595&view=rev
Log:
Revert my commit 191617. It added a clang warning (Thanks to Ed Maste). Add a comment
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=192595&r1=192594&r2=192595&view=diff
==============================================================================
--- lldb/trunk/source/lldb.cpp (original)
+++ lldb/trunk/source/lldb.cpp Mon Oct 14 09:06:28 2013
@@ -408,6 +408,8 @@ lldb_private::NameMatches (const char *n
llvm::StringRef match_sref(match);
switch (match_type)
{
+ case eNameMatchIgnore: // This case cannot occur: tested before
+ 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