diff options
author | 2016-07-20 10:13:45 -0700 | |
---|---|---|
committer | 2016-07-20 10:13:45 -0700 | |
commit | 0b110f499171aa562fc77834b4357c23eacacad4 (patch) | |
tree | 681d7120babd7e668316918bd87a82810a96f984 | |
parent | 360b4b0137ce5f0bb771e2ddbfd4735cae932565 (diff) |
Fix accidental pass-by-value
Change-Id: I245111eabb43368875c1215ca4f3a1f1918492fe
-rw-r--r-- | compiler/optimizing/register_allocation_resolver.cc | 2 | ||||
-rw-r--r-- | compiler/optimizing/register_allocation_resolver.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/compiler/optimizing/register_allocation_resolver.cc b/compiler/optimizing/register_allocation_resolver.cc index 8f5a2a8a76..34502869e4 100644 --- a/compiler/optimizing/register_allocation_resolver.cc +++ b/compiler/optimizing/register_allocation_resolver.cc @@ -36,7 +36,7 @@ void RegisterAllocationResolver::Resolve(size_t max_safepoint_live_core_regs, size_t float_spill_slots, size_t double_spill_slots, size_t catch_phi_spill_slots, - const ArenaVector<LiveInterval*> temp_intervals) { + const ArenaVector<LiveInterval*>& temp_intervals) { size_t spill_slots = int_spill_slots + long_spill_slots + float_spill_slots diff --git a/compiler/optimizing/register_allocation_resolver.h b/compiler/optimizing/register_allocation_resolver.h index 16a8a87c57..6ceb9bc955 100644 --- a/compiler/optimizing/register_allocation_resolver.h +++ b/compiler/optimizing/register_allocation_resolver.h @@ -51,7 +51,7 @@ class RegisterAllocationResolver : ValueObject { size_t float_spill_slots, size_t double_spill_slots, size_t catch_phi_spill_slots, - const ArenaVector<LiveInterval*> temp_intervals); + const ArenaVector<LiveInterval*>& temp_intervals); private: // Connect adjacent siblings within blocks, and resolve inputs along the way. |