From a0ff98ea606a765be5c316739f7c20efb10fc66c Mon Sep 17 00:00:00 2001 From: Jan Wassenberg Date: Wed, 7 May 2025 12:47:40 -0700 Subject: [PATCH] Entirely remove constexpr on PaddedDirEnd. Refs #551 Apparently GCC 9.4 does not handle HWY_CXX17_CONSTEXPR as we intend. PiperOrigin-RevId: 755967709 --- io/blob_store.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/io/blob_store.cc b/io/blob_store.cc index 7cc7b96..8e34df3 100644 --- a/io/blob_store.cc +++ b/io/blob_store.cc @@ -105,7 +105,7 @@ class BlobStore { // Returns the end of the directory, including padding, which is also the // start of the first payload. `num_blobs` is `NumBlobs()` if the header is // already available, otherwise the number of blobs to be written. - static HWY_CXX17_CONSTEXPR size_t PaddedDirEnd(size_t num_blobs) { + static size_t PaddedDirEnd(size_t num_blobs) { HWY_ASSERT(num_blobs < kMaxBlobs); // Per blob, a key and offset/size. return RoundUpToAlign(sizeof(Header) + 2 * kU128Bytes * num_blobs);