diff options
author | Rob Hughes <robert.hughes@arm.com> | 2022-01-26 09:30:57 +0000 |
---|---|---|
committer | Rob Hughes <robert.hughes@arm.com> | 2022-01-26 11:58:31 +0000 |
commit | 524a99ccf69b4bf5c8188bc9e4d89f402c374cae (patch) | |
tree | 8ad4c288cfced86ae9cbf64f748d27e315800e20 /src/backends/neon/workloads | |
parent | 881c2e1fd5e0afd3ec81ded7df66dcf66888ac7d (diff) | |
download | armnn-524a99ccf69b4bf5c8188bc9e4d89f402c374cae.tar.gz |
IVGCVSW-6739 Fix logging bug where blank messages were being sent
The ScopedRecord class sends its message to its sinks in its destructor.
The StartNewRecord() method was creating a local ScopedRecord variable,
returning a (move-initialised) copy of this, and then destroying this
local variable (as the variable goes out of scope at the end of the
function). That destruction was causing an empty log message to be sent
to the sinks, which was not intended.
This patch fixes this by making the move constructor of ScopedRecord
disable the moved-from object, so that it does not send its message
upon destruction.
Change-Id: I435d96074698575ed3445fed2597c115b83701fd
Signed-off-by: Rob Hughes <robert.hughes@arm.com>
Diffstat (limited to 'src/backends/neon/workloads')
0 files changed, 0 insertions, 0 deletions