summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lldb/source/Symbol/Symbol.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Symbol/Symbol.cpp b/lldb/source/Symbol/Symbol.cpp
index 8ff972c2577..7665147a882 100644
--- a/lldb/source/Symbol/Symbol.cpp
+++ b/lldb/source/Symbol/Symbol.cpp
@@ -303,7 +303,7 @@ Symbol::SetValue(addr_t value)
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;
}
OpenPOWER on IntegriCloud