| Index: src/compiler/greedy-allocator.h
|
| diff --git a/src/compiler/greedy-allocator.h b/src/compiler/greedy-allocator.h
|
| index c4e330eb97cc0425d4ec7de4fdb7e0fe5d938fb9..8482dd90be479e8c11872f0d95d2d60408768f6f 100644
|
| --- a/src/compiler/greedy-allocator.h
|
| +++ b/src/compiler/greedy-allocator.h
|
| @@ -22,11 +22,15 @@ class AllocationCandidate {
|
|
|
| // Strict ordering operators
|
| bool operator<(const AllocationCandidate& other) const {
|
| - return range_->GetSize() < other.range_->GetSize();
|
| + DCHECK(range_->IsSizeValid());
|
| + DCHECK(other.range_->IsSizeValid());
|
| + return range_->size() < other.range_->size();
|
| }
|
|
|
| bool operator>(const AllocationCandidate& other) const {
|
| - return range_->GetSize() > other.range_->GetSize();
|
| + DCHECK(range_->IsSizeValid());
|
| + DCHECK(other.range_->IsSizeValid());
|
| + return range_->size() > other.range_->size();
|
| }
|
|
|
| LiveRange* live_range() const { return range_; }
|
|
|