diff options
author | Pavel Labath <labath@google.com> | 2016-03-04 11:26:56 +0000 |
---|---|---|
committer | Pavel Labath <labath@google.com> | 2016-03-04 11:26:56 +0000 |
commit | 16d3fd8ba1be4c075b39d07fe63997e781da426c (patch) | |
tree | 3494d7c4189be3e00bbff24a68fc525760c357f3 | |
parent | b0b1ea36e748ab9037521ab94a002759060a0fdf (diff) | |
download | llvm-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.cpp | 2 |
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) { |