[Lldb-commits] [PATCH] D22278: Fix a check in the objc trampoline handler
Stephane Sezer via lldb-commits
lldb-commits at lists.llvm.org
Tue Jul 12 13:55:20 PDT 2016
sas created this revision.
sas added reviewers: jingham, clayborg.
sas added a subscriber: lldb-commits.
The function FunctionCaller::WriteFunctionArguments returns false on
errors, so they should check for the false return value.
Change by Walter Erquinigo <a20012251 at gmail.com>
http://reviews.llvm.org/D22278
Files:
source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCTrampolineHandler.cpp
Index: source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCTrampolineHandler.cpp
===================================================================
--- source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCTrampolineHandler.cpp
+++ source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCTrampolineHandler.cpp
@@ -818,7 +818,7 @@
// 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)
{
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D22278.63725.patch
Type: text/x-patch
Size: 785 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20160712/8460f6c7/attachment.bin>
More information about the lldb-commits
mailing list