summaryrefslogtreecommitdiff
path: root/compiler/optimizing/scheduler_test.cc
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2017-05-10 16:29:23 +0100
committer Vladimir Marko <vmarko@google.com> 2017-05-11 11:14:54 +0100
commit7d157fcaaae137cc98dbfb872aa1bdc0105a898f (patch)
tree2b7d8affda23908e5bfbfaad446079db2ef1ee09 /compiler/optimizing/scheduler_test.cc
parent58d7ddc678e5bcd2364c24c4bdc8a3cfbcfc5358 (diff)
Clean up some uses of "auto".
Make actual types more explicit, either by replacing "auto" with actual type or by assigning std::pair<> elements of an "auto" variable to typed variables. Avoid binding const references to temporaries. Avoid copying a container. Test: m test-art-host-gtest Change-Id: I1a59f9ba1ee15950cacfc5853bd010c1726de603
Diffstat (limited to 'compiler/optimizing/scheduler_test.cc')
-rw-r--r--compiler/optimizing/scheduler_test.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/optimizing/scheduler_test.cc b/compiler/optimizing/scheduler_test.cc
index 84fadb41c5..d87600aa5e 100644
--- a/compiler/optimizing/scheduler_test.cc
+++ b/compiler/optimizing/scheduler_test.cc
@@ -60,7 +60,7 @@ static ::std::vector<CodegenTargetConfig> GetTargetConfigs() {
#endif
};
- for (auto test_config : test_config_candidates) {
+ for (const CodegenTargetConfig& test_config : test_config_candidates) {
if (CanExecute(test_config.GetInstructionSet())) {
v.push_back(test_config);
}
@@ -127,7 +127,7 @@ class SchedulerTest : public CommonCompilerTest {
array_set1,
array_get2,
array_set2};
- for (auto instr : block_instructions) {
+ for (HInstruction* instr : block_instructions) {
block1->AddInstruction(instr);
}
@@ -144,7 +144,7 @@ class SchedulerTest : public CommonCompilerTest {
SchedulingGraph scheduling_graph(scheduler, graph_->GetArena());
// Instructions must be inserted in reverse order into the scheduling graph.
- for (auto instr : ReverseRange(block_instructions)) {
+ for (HInstruction* instr : ReverseRange(block_instructions)) {
scheduling_graph.AddNode(instr);
}