[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
This commit is contained in:
@@ -35,7 +35,7 @@ const SBModuleSpec &SBModuleSpec::operator=(const SBModuleSpec &rhs) {
|
||||
|
||||
if (this != &rhs)
|
||||
m_opaque_up = clone(rhs.m_opaque_up);
|
||||
return *this;
|
||||
return LLDB_RECORD_RESULT(*this);
|
||||
}
|
||||
|
||||
SBModuleSpec::~SBModuleSpec() {}
|
||||
@@ -166,7 +166,7 @@ SBModuleSpecList &SBModuleSpecList::operator=(const SBModuleSpecList &rhs) {
|
||||
|
||||
if (this != &rhs)
|
||||
*m_opaque_up = *rhs.m_opaque_up;
|
||||
return *this;
|
||||
return LLDB_RECORD_RESULT(*this);
|
||||
}
|
||||
|
||||
SBModuleSpecList::~SBModuleSpecList() {}
|
||||
|
||||
Reference in New Issue
Block a user