Skip to content

Commit

Permalink
Fix emscripten build
Browse files Browse the repository at this point in the history
Summary: Fix emscripten build after D37247495 by adding the new hint parameter (unused).

Reviewed By: jpporto

Differential Revision: D37286505

fbshipit-source-id: e9a7b4e0f684bb71c9c750a3a2ee26d56d85db5d
  • Loading branch information
kodafb authored and facebook-github-bot committed Jun 21, 2022
1 parent 9e40f2b commit 8e4b3bf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/Support/OSCompatEmscripten.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ static char *alignAlloc(void *p, size_t alignment) {
llvh::alignTo(reinterpret_cast<uintptr_t>(p), alignment));
}

llvh::ErrorOr<void *> vm_allocate(size_t sz) {
llvh::ErrorOr<void *> vm_allocate(size_t sz, void * /* hint */) {
assert(sz % page_size() == 0);
#ifndef NDEBUG
if (testPgSz != 0 && testPgSz > static_cast<size_t>(page_size_real())) {
Expand All @@ -97,7 +97,8 @@ llvh::ErrorOr<void *> vm_allocate(size_t sz) {
return vm_allocate_impl(sz);
}

llvh::ErrorOr<void *> vm_allocate_aligned(size_t sz, size_t alignment) {
llvh::ErrorOr<void *>
vm_allocate_aligned(size_t sz, size_t alignment, void * /* hint */) {
assert(sz > 0 && sz % page_size() == 0);
assert(alignment > 0 && alignment % page_size() == 0);

Expand Down

0 comments on commit 8e4b3bf

Please sign in to comment.