We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a74a4a commit 1be849cCopy full SHA for 1be849c
bolt/lib/Profile/YAMLProfileReader.cpp
@@ -643,11 +643,7 @@ size_t YAMLProfileReader::matchWithNameSimilarity(BinaryContext &BC) {
643
// equal number of blocks.
644
if (NamespaceToProfiledBFSizesIt->second.count(BF->size()) == 0)
645
continue;
646
- auto NamespaceToBFsIt = NamespaceToBFs.find(Namespace);
647
- if (NamespaceToBFsIt == NamespaceToBFs.end())
648
- NamespaceToBFs[Namespace] = {BF};
649
- else
650
- NamespaceToBFsIt->second.push_back(BF);
+ NamespaceToBFs[Namespace].push_back(BF);
651
}
652
653
// Iterates through all profiled functions and binary functions belonging to
0 commit comments