Fix warning in IRExecutionUnit.cpp

llvm-svn: 262712
This commit is contained in:
Pavel Labath 2016-03-04 11:26:56 +00:00
parent b0b1ea36e7
commit 16d3fd8ba1
1 changed files with 2 additions and 0 deletions

View File

@ -802,10 +802,12 @@ IRExecutionUnit::FindInSymbols(const std::vector<IRExecutionUnit::SearchSpec> &s
load_address = candidate_sc.symbol->ResolveCallableAddress(*target);
if (load_address == LLDB_INVALID_ADDRESS)
{
if (target->GetProcessSP())
load_address = candidate_sc.symbol->GetAddress().GetLoadAddress(target);
else
load_address = candidate_sc.symbol->GetAddress().GetFileAddress();
}
if (load_address != LLDB_INVALID_ADDRESS)
{