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 2d31c71 commit d5bfb25Copy full SHA for d5bfb25
llvm/include/llvm/Transforms/IPO/ProfiledCallGraph.h
@@ -150,11 +150,11 @@ class ProfiledCallGraph {
150
private:
151
void addProfiledCall(FunctionId CallerName, FunctionId CalleeName,
152
uint64_t Weight = 0) {
153
- auto CallerIt = ProfiledFunctions.find(CallerName);
154
- assert(CallerIt != ProfiledFunctions.end());
155
auto CalleeIt = ProfiledFunctions.find(CalleeName);
156
if (CalleeIt == ProfiledFunctions.end())
157
return;
+ auto CallerIt = ProfiledFunctions.find(CallerName);
+ assert(CallerIt != ProfiledFunctions.end());
158
ProfiledCallGraphEdge Edge(CallerIt->second, CalleeIt->second, Weight);
159
auto &Edges = CallerIt->second->Edges;
160
auto [EdgeIt, Inserted] = Edges.insert(Edge);
0 commit comments