aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Peraza <jperaza@chromium.org>2018-08-17 09:47:44 -0700
committerJoshua Peraza <jperaza@chromium.org>2018-08-17 17:02:52 +0000
commit47b4a1c10597e7360dc2ad60d1122acf43016e7c (patch)
tree01d1648c955edb85677eeff61c94cfa56d62cc20
parentTreat high_pc as an address for DW_FORM_GNU_addr_index (diff)
downloadbreakpad-47b4a1c10597e7360dc2ad60d1122acf43016e7c.tar.xz
Make a parameter a const reference
Change-Id: I7d232dd9be3a03b5bd9f1d46c307d080fadf9116 Reviewed-on: https://chromium-review.googlesource.com/1179978 Reviewed-by: Mark Mentovai <mark@chromium.org>
-rw-r--r--src/common/dwarf_cu_to_module.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/dwarf_cu_to_module.cc b/src/common/dwarf_cu_to_module.cc
index 527a7046..e5071ba7 100644
--- a/src/common/dwarf_cu_to_module.cc
+++ b/src/common/dwarf_cu_to_module.cc
@@ -558,7 +558,7 @@ bool DwarfCUToModule::FuncHandler::EndAttributes() {
return true;
}
-static bool IsEmptyRange(vector<Module::Range> ranges) {
+static bool IsEmptyRange(const vector<Module::Range>& ranges) {
uint64 size = accumulate(ranges.cbegin(), ranges.cend(), 0,
[](uint64 total, Module::Range entry) {
return total + entry.size;