diff options
| author | Dan Willemsen <dwillemsen@google.com> | 2016-11-01 14:49:08 -0700 |
|---|---|---|
| committer | Dan Willemsen <dwillemsen@google.com> | 2016-11-01 14:49:46 -0700 |
| commit | cb2ff8558ced3ddc021823a3c86bc7ce02dcbdc3 (patch) | |
| tree | a1c65ac2a0f2ef41fbb29ea16c27f1ad5ccdc2d4 /dep.cc | |
| parent | ba9de4bc7eb7327d1177270d0956d6cb7aaf1d9c (diff) | |
Fix some possible performance issues found by clang-tidy
No obvious time differences when building AOSP, but these all seem like
reasonable changes.
Diffstat (limited to 'dep.cc')
| -rw-r--r-- | dep.cc | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -534,7 +534,7 @@ class DepBuilder { if (found == suffix_rules_.end()) return rule_merger; - for (shared_ptr<Rule> irule : found->second) { + for (const shared_ptr<Rule> &irule : found->second) { CHECK(irule->inputs.size() == 1); Symbol input = ReplaceSuffix(output, irule->inputs[0]); if (!Exists(input)) |
