[Lldb-commits] [lldb] r143264 - /lldb/trunk/source/Symbol/Symbol.cpp

Jim Ingham jingham at apple.com
Fri Oct 28 17:54:12 PDT 2011


Author: jingham
Date: Fri Oct 28 19:54:12 2011
New Revision: 143264

URL: http://llvm.org/viewvc/llvm-project?rev=143264&view=rev
Log:
Fix a type in Symbol::Compare which was causing calls to Compare with type eSymbolTypeAny to fail.

Modified:
    lldb/trunk/source/Symbol/Symbol.cpp

Modified: lldb/trunk/source/Symbol/Symbol.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Symbol/Symbol.cpp?rev=143264&r1=143263&r2=143264&view=diff
==============================================================================
--- lldb/trunk/source/Symbol/Symbol.cpp (original)
+++ lldb/trunk/source/Symbol/Symbol.cpp Fri Oct 28 19:54:12 2011
@@ -303,7 +303,7 @@
 bool
 Symbol::Compare(const ConstString& name, SymbolType type) const
 {
-    if (m_type == eSymbolTypeAny || m_type == type)
+    if (type == eSymbolTypeAny || m_type == type)
         return m_mangled.GetMangledName() == name || m_mangled.GetDemangledName() == name;
     return false;
 }





More information about the lldb-commits mailing list