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 670a461 commit 35bbfbcCopy full SHA for 35bbfbc
llvm/lib/XRay/BlockIndexer.cpp
@@ -80,12 +80,9 @@ Error BlockIndexer::visit(FunctionRecord &R) {
80
}
81
82
Error BlockIndexer::flush() {
83
- Index::iterator It;
84
- std::tie(It, std::ignore) =
85
- Indices.insert({{CurrentBlock.ProcessID, CurrentBlock.ThreadID}, {}});
86
- It->second.push_back({CurrentBlock.ProcessID, CurrentBlock.ThreadID,
87
- CurrentBlock.WallclockTime,
88
- std::move(CurrentBlock.Records)});
+ Indices[{CurrentBlock.ProcessID, CurrentBlock.ThreadID}].push_back(
+ {CurrentBlock.ProcessID, CurrentBlock.ThreadID,
+ CurrentBlock.WallclockTime, std::move(CurrentBlock.Records)});
89
CurrentBlock.ProcessID = 0;
90
CurrentBlock.ThreadID = 0;
91
CurrentBlock.Records = {};
0 commit comments