Commit ead61817 authored by Milad Farazmand's avatar Milad Farazmand Committed by Commit Bot

Explicitly constructing the std::pair

older gcc compilers (tested on PPC gcc 6) may throw
a compilation error if std::pair is not constructed explicitly.

<algorithm> header also needs to be included to avoid the following
error:

error: 'remove_if' is not a member of 'std'


Change-Id: Ia7919185614fee1e2e35f2fb25f5fdf05b90e27f
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2149565Reviewed-by: 's avatarMichael Lippautz <mlippautz@chromium.org>
Commit-Queue: Milad Farazmand <miladfar@ca.ibm.com>
Cr-Commit-Position: refs/heads/master@{#67133}
parent 1171a5fc
......@@ -195,7 +195,7 @@ Address PageBackend::AllocateLargePageMemory(size_t size) {
const PageMemory pm = pmr->GetPageMemory();
Unprotect(allocator_, pm);
page_memory_region_tree_.Add(pmr.get());
large_page_memory_regions_.insert({pmr.get(), std::move(pmr)});
large_page_memory_regions_.insert(std::make_pair(pmr.get(), std::move(pmr)));
return pm.writeable_region().base();
}
......
......@@ -4,6 +4,7 @@
#include "src/heap/cppgc/prefinalizer-handler.h"
#include <algorithm>
#include <memory>
#include "src/base/platform/platform.h"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment