Commit 1833f247 authored by Anton Bikineev's avatar Anton Bikineev Committed by Commit Bot

heap: Fix copy-paste mistake in allocation of HeapDeque

Change-Id: Id92f3da6039c0d2e040ee55caa0ca0b722844233
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1803920Reviewed-by: default avatarMichael Lippautz <mlippautz@chromium.org>
Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Commit-Queue: Anton Bikineev <bikineev@chromium.org>
Cr-Commit-Position: refs/heads/master@{#696644}
parent b71e3d38
......@@ -712,7 +712,7 @@ class HeapDeque : public Deque<T, inlineCapacity, HeapAllocator> {
// VectorTraits<T>::kNeedsDestruction case for now.
static_assert(inlineCapacity == 0 || !VectorTraits<T>::kNeedsDestruction,
"on-heap HeapDeque<> should not have an inline capacity");
return ThreadHeap::Allocate<HeapVector<T, inlineCapacity>>(size);
return ThreadHeap::Allocate<HeapDeque<T, inlineCapacity>>(size);
}
HeapDeque() { CheckType(); }
......
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