Commit 0c989949 authored by Ng Zhi An's avatar Ng Zhi An Committed by V8 LUCI CQ

[utils] Fix -Wshadow warnings

Bug: v8:12244,v8:12245
Change-Id: I2d1f9f24b8a78b8025c73e065e79c72c842a939b
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3273528Reviewed-by: 's avatarOmer Katz <omerkatz@chromium.org>
Commit-Queue: Zhi An Ng <zhin@chromium.org>
Cr-Commit-Position: refs/heads/main@{#77854}
parent 18fdbc3f
......@@ -424,10 +424,11 @@ bool VirtualMemoryCage::InitReservation(
// The reservation could still be somewhere else but we can accept it
// if it has the required alignment.
Address address = VirtualMemoryCageStart(reservation.address(), params);
if (reservation.address() == address) {
Address start_address =
VirtualMemoryCageStart(reservation.address(), params);
if (reservation.address() == start_address) {
reservation_ = std::move(reservation);
base_ = address + params.base_bias_size;
base_ = start_address + params.base_bias_size;
CHECK_EQ(reservation_.size(), params.reservation_size);
break;
}
......
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