Commit d0c75a81 authored by Ng Zhi An's avatar Ng Zhi An Committed by Commit Bot

[clang-tidy] Use bool literals

See
https://clang.llvm.org/extra/clang-tidy/checks/modernize-use-bool-literals.html.

Bug: v8:10488
Change-Id: I9de63b954f99a1725b5d20ff7bb3f416cf22131a
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2233408Reviewed-by: 's avatarBill Budge <bbudge@chromium.org>
Commit-Queue: Zhi An Ng <zhin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#68242}
parent f7f72b7b
......@@ -3496,7 +3496,7 @@ void LinearScanAllocator::ComputeStateFromManyPredecessors(
// Choose the live ranges from the majority.
const size_t majority =
(current_block->PredecessorCount() + 2 - deferred_blocks) / 2;
bool taken_registers[RegisterConfiguration::kMaxRegisters] = {0};
bool taken_registers[RegisterConfiguration::kMaxRegisters] = {false};
auto assign_to_live = [this, counts, majority](
std::function<bool(TopLevelLiveRange*)> filter,
RangeWithRegisterSet* to_be_live,
......
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