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 ranges) { +static bool IsEmptyRange(const vector& ranges) { uint64 size = accumulate(ranges.cbegin(), ranges.cend(), 0, [](uint64 total, Module::Range entry) { return total + entry.size;