summaryrefslogtreecommitdiffstats
path: root/compiler/optimizing
diff options
context:
space:
mode:
authorMatthew Gharrity <gharrma@google.com>2016-07-20 10:13:45 -0700
committerMatthew Gharrity <gharrma@google.com>2016-07-20 10:13:45 -0700
commit0b110f499171aa562fc77834b4357c23eacacad4 (patch)
tree681d7120babd7e668316918bd87a82810a96f984 /compiler/optimizing
parent360b4b0137ce5f0bb771e2ddbfd4735cae932565 (diff)
downloadart-0b110f499171aa562fc77834b4357c23eacacad4.tar.gz
art-0b110f499171aa562fc77834b4357c23eacacad4.tar.bz2
art-0b110f499171aa562fc77834b4357c23eacacad4.zip
Fix accidental pass-by-value
Change-Id: I245111eabb43368875c1215ca4f3a1f1918492fe
Diffstat (limited to 'compiler/optimizing')
-rw-r--r--compiler/optimizing/register_allocation_resolver.cc2
-rw-r--r--compiler/optimizing/register_allocation_resolver.h2
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.