mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-06 00:48:18 -07:00
Upstream's versioning has change which messes with slot numbers. Closes: https://bugs.gentoo.org/906811 Signed-off-by: Mark Conway <mark.conway@themobiusproject.com> Signed-off-by: Sam James <sam@gentoo.org>
12 lines
529 B
Diff
12 lines
529 B
Diff
https://github.com/protocolbuffers/protobuf/issues/9433
|
|
--- a/src/google/protobuf/descriptor.cc
|
|
+++ b/src/google/protobuf/descriptor.cc
|
|
@@ -384,7 +384,6 @@ class FlatAllocatorImpl {
|
|
ABSL_CHECK(!has_allocated());
|
|
if (std::is_trivially_destructible<U>::value) {
|
|
// Trivial types are aligned to 8 bytes.
|
|
- static_assert(alignof(U) <= 8, "");
|
|
total_.template Get<char>() += RoundUpTo<8>(array_size * sizeof(U));
|
|
} else {
|
|
// Since we can't use `if constexpr`, just make the expression compile
|