Commit cb491810 authored by Milad Fa's avatar Milad Fa Committed by Commit Bot

cppgc: fix compilation error on gcc

The following error occurs without braces:

error: suggest explicit braces to avoid ambiguous 'else'.

Change-Id: Iae1af51dcaf8ab6b34fd9312f3133fbd395a653c
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2826234Reviewed-by: 's avatarOmer Katz <omerkatz@chromium.org>
Commit-Queue: Milad Fa <mfarazma@redhat.com>
Cr-Commit-Position: refs/heads/master@{#73963}
parent 6ac4d69e
......@@ -234,8 +234,9 @@ TEST_F(WorkloadsTest, BasicFunctionality) {
// on the heap, so we establish a base line.
size_t base_level = initial_object_payload_size;
bool test_pages_allocated = !base_level;
if (test_pages_allocated)
if (test_pages_allocated) {
EXPECT_EQ(0ul, heap->stats_collector()->allocated_memory_size());
}
// This allocates objects on the general heap which should add a page of
// memory.
......@@ -272,8 +273,9 @@ TEST_F(WorkloadsTest, BasicFunctionality) {
size_t total = 0;
size_t base_level = ObjectSizeCounter().GetSize(&heap->raw_heap());
bool test_pages_allocated = !base_level;
if (test_pages_allocated)
if (test_pages_allocated) {
EXPECT_EQ(0ul, heap->stats_collector()->allocated_memory_size());
}
size_t big = 1008;
Persistent<DynamicallySizedObject> big_area =
......
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