getValueSitesForKind returns ArrayRef which has a cast operator to std::vector,
as a result a temporary is created if the type of the variable is const std::vector & .
Test plan: make check-all
Differential D34970
[profiledata] Avoid creating a temporary vector in getNumValueData alexander-shaposhnikov on Jul 3 2017, 5:34 PM. Authored by
Details getValueSitesForKind returns ArrayRef which has a cast operator to std::vector, Test plan: make check-all
Diff Detail
Event TimelineComment Actions Could you roll the expression into the range-for loop range expression? Naming the container doesn't seem to add much value. Comment Actions Could you roll the expression into the range-for loop range expression? Naming the container doesn't seem to add much value. |