Skip to content

Commit fafc285

Browse files
authored
[NFC] Remove unused wasm::alignAddr (#8543)
Usage seems to have been removed in #1607
1 parent 6d47684 commit fafc285

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

src/support/utilities.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,6 @@ inline Destination bit_cast(const Source& source) {
4747
return destination;
4848
}
4949

50-
inline size_t alignAddr(size_t address, size_t alignment) {
51-
assert(alignment && Bits::isPowerOf2((uint32_t)alignment) &&
52-
"Alignment is not a power of two!");
53-
54-
assert(address + alignment - 1 >= address);
55-
56-
return ((address + alignment - 1) & ~(alignment - 1));
57-
}
58-
5950
// For fatal errors which could arise from input (i.e. not assertion failures)
6051
class Fatal {
6152
private:

0 commit comments

Comments
 (0)