Symbol may not have a demangled name, use GetName to get the best name available in this case.
llvm-svn: 131527
diff --git a/lldb/source/Commands/CommandCompletions.cpp b/lldb/source/Commands/CommandCompletions.cpp
index e57a8b4..f116890 100644
--- a/lldb/source/Commands/CommandCompletions.cpp
+++ b/lldb/source/Commands/CommandCompletions.cpp
@@ -633,7 +633,7 @@
}
else if (sc.symbol && sc.symbol->GetAddressRangePtr())
{
- m_match_set.insert (sc.symbol->GetMangled().GetDemangledName());
+ m_match_set.insert (sc.symbol->GetMangled().GetName());
}
}
}