Make a parameter a const reference

Change-Id: I7d232dd9be3a03b5bd9f1d46c307d080fadf9116
Reviewed-on: https://chromium-review.googlesource.com/1179978
Reviewed-by: Mark Mentovai <mark@chromium.org>
This commit is contained in:
Joshua Peraza 2018-08-17 09:47:44 -07:00
parent 6ee298a346
commit 47b4a1c105

View file

@ -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;