From 4024afbbc70f94fe2c9cca3ed2227f2dc8a98b6e Mon Sep 17 00:00:00 2001 From: Abseil Team Date: Tue, 19 Mar 2024 12:58:47 -0700 Subject: Delete ABSL_ANNOTATE_MEMORY_IS_INITIALIZED under Thread Sanitizer PiperOrigin-RevId: 617266753 Change-Id: I6cac7b4616001c8d435fb1786da81b746f2d14cb --- absl/base/dynamic_annotations.h | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'absl/base/dynamic_annotations.h') diff --git a/absl/base/dynamic_annotations.h b/absl/base/dynamic_annotations.h index 7ba8912e..f18b5e0a 100644 --- a/absl/base/dynamic_annotations.h +++ b/absl/base/dynamic_annotations.h @@ -252,25 +252,9 @@ ABSL_INTERNAL_END_EXTERN_C #else // !defined(ABSL_HAVE_MEMORY_SANITIZER) -// TODO(rogeeff): remove this branch -#ifdef ABSL_HAVE_THREAD_SANITIZER -#define ABSL_ANNOTATE_MEMORY_IS_INITIALIZED(address, size) \ - do { \ - (void)(address); \ - (void)(size); \ - } while (0) -#define ABSL_ANNOTATE_MEMORY_IS_UNINITIALIZED(address, size) \ - do { \ - (void)(address); \ - (void)(size); \ - } while (0) -#else - #define ABSL_ANNOTATE_MEMORY_IS_INITIALIZED(address, size) // empty #define ABSL_ANNOTATE_MEMORY_IS_UNINITIALIZED(address, size) // empty -#endif - #endif // ABSL_HAVE_MEMORY_SANITIZER // ------------------------------------------------------------------------- -- cgit v1.2.3