Merge "clang10 proting" into amd-master

[ROCm/rocprofiler commit: 48c8076e9c]
This commit is contained in:
Evgeny Shcherbakov
2020-05-12 22:57:32 -04:00
committed by Gerrit Code Review
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -257,7 +257,7 @@ class Context {
void GetMetricsData() const {
const MetricArgs<info_map_t> args(info_map_);
for (const auto v : metrics_map_) {
for (const auto& v : metrics_map_) {
const std::string& name = v.first;
const Metric* metric = v.second;
const xml::Expr* expr = metric->GetExpr();
+1 -1
View File
@@ -277,7 +277,7 @@ class MetricsDict {
std::cout << name << "=" << expr_obj->String() << "\n" << std::endl;
#endif
counters_vec_t counters_vec;
for (const std::string var : expr_obj->GetVars()) {
for (const std::string& var : expr_obj->GetVars()) {
auto it = cache_.find(var);
if (it == cache_.end()) {
EXC_RAISING(HSA_STATUS_ERROR, "Bad metric '" << name << "', var '" << var << "' is not found");