From 306809f292c9dd26e1a901b139f65976cdd5a4b2 Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Wed, 3 Apr 2019 21:31:22 +0000 Subject: [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 --- lldb/source/API/SBExpressionOptions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lldb/source/API/SBExpressionOptions.cpp') diff --git a/lldb/source/API/SBExpressionOptions.cpp b/lldb/source/API/SBExpressionOptions.cpp index 4b15b71bec1..8c34194abf1 100644 --- a/lldb/source/API/SBExpressionOptions.cpp +++ b/lldb/source/API/SBExpressionOptions.cpp @@ -37,7 +37,7 @@ operator=(const SBExpressionOptions &rhs) { if (this != &rhs) m_opaque_up = clone(rhs.m_opaque_up); - return *this; + return LLDB_RECORD_RESULT(*this); } SBExpressionOptions::~SBExpressionOptions() {} -- cgit v1.2.3