Skip to content

Commit b8bce9a

Browse files
rebase changes
1 parent d1ad337 commit b8bce9a

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

libc/src/__support/HashTable/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ add_header_library(
2828
libc.include.llvm-libc-types.ENTRY
2929
libc.src.__support.CPP.bit
3030
libc.src.__support.CPP.new
31-
libc.src.__support.CPP.type_traits
3231
libc.src.__support.hash
3332
libc.src.__support.macros.attributes
3433
libc.src.__support.macros.optimization

libc/src/__support/HashTable/table.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
#include "include/llvm-libc-types/ENTRY.h"
1313
#include "src/__support/CPP/bit.h" // bit_ceil
1414
#include "src/__support/CPP/new.h"
15-
#include "src/__support/CPP/type_traits.h"
1615
#include "src/__support/HashTable/bitmask.h"
1716
#include "src/__support/hash.h"
1817
#include "src/__support/macros/attributes.h"
@@ -118,7 +117,7 @@ struct HashTable {
118117

119118
LIBC_INLINE constexpr static size_t offset_to_groups() {
120119
size_t header_size = sizeof(HashTable);
121-
return header_size + offset_to(header_size, table_alignment());
120+
return header_size + SafeMemSize::offset_to(header_size, table_alignment());
122121
}
123122

124123
LIBC_INLINE ENTRY &entry(size_t i) {

0 commit comments

Comments
 (0)