forked from OSchip/llvm-project
Fix a check in the objc trampoline handler
Summary: The function FunctionCaller::WriteFunctionArguments returns false on errors, so they should check for the false return value. Change by Walter Erquinigo <a20012251@gmail.com> Reviewers: jingham, clayborg Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D22278 llvm-svn: 275287
This commit is contained in:
parent
0e27d67a98
commit
1852a78416
|
@ -818,7 +818,7 @@ AppleObjCTrampolineHandler::SetupDispatchFunction(Thread &thread, ValueList &dis
|
|||
// if other threads were calling into here, but actually it isn't because we allocate a new args structure for
|
||||
// this call by passing args_addr = LLDB_INVALID_ADDRESS...
|
||||
|
||||
if (impl_function_caller->WriteFunctionArguments(exe_ctx, args_addr, dispatch_values, diagnostics))
|
||||
if (!impl_function_caller->WriteFunctionArguments(exe_ctx, args_addr, dispatch_values, diagnostics))
|
||||
{
|
||||
if (log)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue