From faf694b662dd4b0af677b7ef0b048b757b8c263e Mon Sep 17 00:00:00 2001 From: Vitaly Buka Date: Mon, 6 Dec 2021 22:35:55 -0800 Subject: [PATCH] [NFC][sanitizer] Non-copyable ScopedBlockSignals --- compiler-rt/lib/sanitizer_common/sanitizer_linux.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_linux.h b/compiler-rt/lib/sanitizer_common/sanitizer_linux.h index 6a235db0ee2e..ebd60e0b10f2 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_linux.h +++ b/compiler-rt/lib/sanitizer_common/sanitizer_linux.h @@ -55,6 +55,9 @@ struct ScopedBlockSignals { explicit ScopedBlockSignals(__sanitizer_sigset_t *copy); ~ScopedBlockSignals(); + ScopedBlockSignals &operator=(const ScopedBlockSignals &) = delete; + ScopedBlockSignals(const ScopedBlockSignals &) = delete; + private: __sanitizer_sigset_t saved_; };