Fix an instance of -Wunused-but-set-variable.

Bug: chromium:1203071
Change-Id: I09724552731594ddf18358d29cdc243cb696652d
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3053617
Reviewed-by: Yang Guo <yangguo@chromium.org>
Commit-Queue: Peter Kasting <pkasting@chromium.org>
Cr-Commit-Position: refs/heads/master@{#75929}
This commit is contained in:
Peter Kasting 2021-07-26 07:16:04 -07:00 committed by V8 LUCI CQ
parent 1fc4ad83f3
commit 28661339c7

View File

@ -95,11 +95,8 @@ TEST(SimpleAllocate) {
LocalAllocationBuffer lab =
LocalAllocationBuffer::FromResult(heap, lab_backing_store, kLabSize);
CHECK(lab.IsValid());
intptr_t sum = 0;
for (auto size : sizes) {
if (AllocateFromLab(heap, &lab, size)) {
sum += size;
}
AllocateFromLab(heap, &lab, size);
}
}
VerifyIterable(base, limit, expected_sizes);