Skip to content
This repository has been archived by the owner on Apr 23, 2020. It is now read-only.

Commit

Permalink
UtilityFunction::MakeFunctionCaller uses the Error to report failure,
Browse files Browse the repository at this point in the history
but when there's was no process it was just returning an null pointer
and not setting the error.  I don't have a scenario where this might
go wrong, just code inspection...


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@267594 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
jimingham committed Apr 26, 2016
1 parent a3f436c commit 57fe881
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source/Expression/UtilityFunction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,10 @@ UtilityFunction::MakeFunctionCaller (const CompilerType &return_type, const Valu

ProcessSP process_sp = m_jit_process_wp.lock();
if (!process_sp)
{
error.SetErrorString("Can't make a function caller without a process.");
return nullptr;
}

Address impl_code_address;
impl_code_address.SetOffset(StartAddress());
Expand Down

0 comments on commit 57fe881

Please # to comment.