diff options
author | Jonas Devlieghere <jonas@devlieghere.com> | 2019-04-03 21:31:22 +0000 |
---|---|---|
committer | Jonas Devlieghere <jonas@devlieghere.com> | 2019-04-03 21:31:22 +0000 |
commit | 306809f292c9dd26e1a901b139f65976cdd5a4b2 (patch) | |
tree | b22cc9af74e85c1ab680b7ad5a8ac035fda72f5e /lldb/source/API/SBBroadcaster.cpp | |
parent | 7c711ccf36e0a818f76d711715956ffe831f53b6 (diff) | |
download | bcm5719-llvm-306809f292c9dd26e1a901b139f65976cdd5a4b2.tar.gz bcm5719-llvm-306809f292c9dd26e1a901b139f65976cdd5a4b2.zip |
[Reproducers] Capture return values of functions returning by ptr/ref
For some reason I had convinced myself that functions returning by
pointer or reference do not require recording their result. However,
after further considering I don't see how that could work, at least not
with the current implementation. Interestingly enough, the reproducer
instrumentation already (mostly) accounts for this, though the
lldb-instr tool did not.
This patch adds the missing macros and updates the lldb-instr tool.
Differential revision: https://reviews.llvm.org/D60178
llvm-svn: 357639
Diffstat (limited to 'lldb/source/API/SBBroadcaster.cpp')
-rw-r--r-- | lldb/source/API/SBBroadcaster.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/API/SBBroadcaster.cpp b/lldb/source/API/SBBroadcaster.cpp index 2777fe8e3f6..4119fb2c134 100644 --- a/lldb/source/API/SBBroadcaster.cpp +++ b/lldb/source/API/SBBroadcaster.cpp @@ -45,7 +45,7 @@ const SBBroadcaster &SBBroadcaster::operator=(const SBBroadcaster &rhs) { m_opaque_sp = rhs.m_opaque_sp; m_opaque_ptr = rhs.m_opaque_ptr; } - return *this; + return LLDB_RECORD_RESULT(*this); } SBBroadcaster::~SBBroadcaster() { reset(NULL, false); } |