summaryrefslogtreecommitdiff
path: root/absl/base/dynamic_annotations.h
diff options
context:
space:
mode:
authorGravatar Jeremy Ong <jeremycong@gmail.com>2021-04-27 11:26:09 -0600
committerGravatar GitHub <noreply@github.com>2021-04-27 13:26:09 -0400
commitbcc11a8918f8cc9b43c9a0dc5da7b52d48452bd3 (patch)
tree17d7ab14dab7d56858e4c270d73a269ded5a113c /absl/base/dynamic_annotations.h
parenta5167f986b82e9a7535ee710e87e53cf4c8ef2a8 (diff)
Uses alignas for portability in dynamic_annotations.h (#947)
Fixes an MSVC compiler error when address sanitizers are enabled
Diffstat (limited to 'absl/base/dynamic_annotations.h')
-rw-r--r--absl/base/dynamic_annotations.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/absl/base/dynamic_annotations.h b/absl/base/dynamic_annotations.h
index 880cbf6e..03d7096b 100644
--- a/absl/base/dynamic_annotations.h
+++ b/absl/base/dynamic_annotations.h
@@ -471,7 +471,7 @@ using absl::base_internal::ValgrindSlowdown;
__sanitizer_annotate_contiguous_container(beg, end, old_mid, new_mid)
#define ABSL_ADDRESS_SANITIZER_REDZONE(name) \
struct { \
- char x[8] __attribute__((aligned(8))); \
+ alignas(8) char x[8]; \
} name
#else