aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavel Labath <labath@google.com>2016-03-04 11:26:56 +0000
committerPavel Labath <labath@google.com>2016-03-04 11:26:56 +0000
commit16d3fd8ba1be4c075b39d07fe63997e781da426c (patch)
tree3494d7c4189be3e00bbff24a68fc525760c357f3
parentb0b1ea36e748ab9037521ab94a002759060a0fdf (diff)
downloadllvm-16d3fd8ba1be4c075b39d07fe63997e781da426c.zip
llvm-16d3fd8ba1be4c075b39d07fe63997e781da426c.tar.gz
llvm-16d3fd8ba1be4c075b39d07fe63997e781da426c.tar.bz2
Fix warning in IRExecutionUnit.cpp
llvm-svn: 262712
-rw-r--r--lldb/source/Expression/IRExecutionUnit.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lldb/source/Expression/IRExecutionUnit.cpp b/lldb/source/Expression/IRExecutionUnit.cpp
index 38e1363..4ae1a4c 100644
--- a/lldb/source/Expression/IRExecutionUnit.cpp
+++ b/lldb/source/Expression/IRExecutionUnit.cpp
@@ -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)
{