From 886cc7585f935f4f12257444af7862b51dc91584 Mon Sep 17 00:00:00 2001 From: ludamad Date: Mon, 19 Feb 2024 17:20:08 +0000 Subject: [PATCH] fix: msan build (#4646) Co-authored-by: ludamad --- .../crypto/merkle_tree/indexed_tree/indexed_tree.hpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/barretenberg/cpp/src/barretenberg/crypto/merkle_tree/indexed_tree/indexed_tree.hpp b/barretenberg/cpp/src/barretenberg/crypto/merkle_tree/indexed_tree/indexed_tree.hpp index 3afb64e9163..b7112be5447 100644 --- a/barretenberg/cpp/src/barretenberg/crypto/merkle_tree/indexed_tree/indexed_tree.hpp +++ b/barretenberg/cpp/src/barretenberg/crypto/merkle_tree/indexed_tree/indexed_tree.hpp @@ -7,7 +7,7 @@ namespace bb::crypto::merkle_tree { -typedef uint256_t index_t; +using index_t = uint256_t; /** * @brief Used in parallel insertions in the the IndexedTree. Workers signal to other following workes as they move up @@ -18,11 +18,13 @@ class LevelSignal { public: LevelSignal(size_t initial_level) : signal_(initial_level){}; - ~LevelSignal(){}; + ~LevelSignal() = default; LevelSignal(const LevelSignal& other) : signal_(other.signal_.load()) {} - LevelSignal(const LevelSignal&& other) = delete; + LevelSignal(const LevelSignal&& other) noexcept + : signal_(other.signal_.load()) + {} /** * @brief Causes the thread to wait until the required level has been signalled