[lldb][NFC] Simplify return in MaybeHandleVariable

This function anyway returns true, no need to do this extra work.

llvm-svn: 368309
This commit is contained in:
Raphael Isemann 2019-08-08 16:41:32 +00:00
parent eb7a553db8
commit 0e5eef5c8f
1 changed files with 4 additions and 9 deletions

View File

@ -1387,15 +1387,10 @@ bool IRForTarget::MaybeHandleVariable(Value *llvm_value_ptr) {
PrintType(value_type).c_str(), *value_size, value_alignment);
}
if (named_decl &&
!m_decl_map->AddValueToStruct(
named_decl, lldb_private::ConstString(name.c_str()), llvm_value_ptr,
*value_size, value_alignment)) {
if (!global_variable->hasExternalLinkage())
return true;
else
return true;
}
if (named_decl)
m_decl_map->AddValueToStruct(
named_decl, lldb_private::ConstString(name.c_str()), llvm_value_ptr,
*value_size, value_alignment);
} else if (dyn_cast<llvm::Function>(llvm_value_ptr)) {
if (log)
LLDB_LOGF(log, "Function pointers aren't handled right now");