Commit 6f218934 authored by Takuto Ikuta's avatar Takuto Ikuta Committed by Commit Bot

Specify const for operator() in LiveRangeOrdering

This is a preparation CL to remove -Wno-user-defined-warnings warning suppression.

Bug: chromium:683349
Change-Id: If883c24ebac66292329abaf01c5d328bfd51c5c9
Reviewed-on: https://chromium-review.googlesource.com/c/1286391Reviewed-by: 's avatarTobias Tebbi <tebbi@chromium.org>
Commit-Queue: Takuto Ikuta <tikuta@chromium.org>
Cr-Commit-Position: refs/heads/master@{#56727}
parent 02100d56
......@@ -1041,7 +1041,7 @@ class LinearScanAllocator final : public RegisterAllocator {
private:
struct LiveRangeOrdering {
bool operator()(LiveRange* a, LiveRange* b) {
bool operator()(const LiveRange* a, const LiveRange* b) const {
return a->ShouldBeAllocatedBefore(b);
}
};
......
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