summaryrefslogtreecommitdiff
path: root/chromium/base/substring_set_matcher/substring_set_matcher.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/base/substring_set_matcher/substring_set_matcher.h')
-rw-r--r--chromium/base/substring_set_matcher/substring_set_matcher.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/chromium/base/substring_set_matcher/substring_set_matcher.h b/chromium/base/substring_set_matcher/substring_set_matcher.h
index fcb5076f8eb..b359ae88915 100644
--- a/chromium/base/substring_set_matcher/substring_set_matcher.h
+++ b/chromium/base/substring_set_matcher/substring_set_matcher.h
@@ -156,7 +156,8 @@ class BASE_EXPORT SubstringSetMatcher {
// A node in the trie, packed tightly together so that it occupies 12 bytes
// (both on 32- and 64-bit platforms), but aligned to at least 4 (see the
// comment on edges_).
- class alignas(AhoCorasickEdge) AhoCorasickNode {
+#pragma pack(push, 1)
+ class AhoCorasickNode {
public:
AhoCorasickNode();
~AhoCorasickNode();
@@ -302,7 +303,8 @@ class BASE_EXPORT SubstringSetMatcher {
// If not equal to zero, will be a multiple of 4, so that we can use
// SIMD to accelerate looking for edges.
uint16_t edges_capacity_ = 0;
- } __attribute__((packed));
+ };
+#pragma pack(pop)
using SubstringPatternVector = std::vector<const MatcherStringPattern*>;