Skip to content

Commit

Permalink
[lldb][Core] Remove dead codepath in Mangled
Browse files Browse the repository at this point in the history
Summary:
Objective-C names are stored in m_demangled, not in m_mangled. The
method in the condition will never return true.

Differential Revision: https://reviews.llvm.org/D79823
  • Loading branch information
bulbazord committed May 27, 2020
1 parent e724db0 commit 1079978
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lldb/source/Core/Mangled.cpp
Expand Up @@ -413,8 +413,6 @@ lldb::LanguageType Mangled::GuessLanguage() const {
const char *mangled_name = mangled.GetCString();
if (CPlusPlusLanguage::IsCPPMangledName(mangled_name))
return lldb::eLanguageTypeC_plus_plus;
else if (ObjCLanguage::IsPossibleObjCMethodName(mangled_name))
return lldb::eLanguageTypeObjC;
} else {
// ObjC names aren't really mangled, so they won't necessarily be in the
// mangled name slot.
Expand Down

0 comments on commit 1079978

Please sign in to comment.