[clang] [llvm] Use timeTraceAsyncProfilerBegin for Source span (PR #83961)
Zequan Wu via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 11 09:43:13 PDT 2024
================
@@ -132,15 +135,18 @@ struct llvm::TimeTraceProfiler {
// happens to be the ones that don't have any currently open entries above
// itself.
if (llvm::none_of(llvm::drop_begin(llvm::reverse(Stack)),
- [&](const TimeTraceProfilerEntry &Val) {
- return Val.Name == E.Name;
+ [&](const std::unique_ptr<TimeTraceProfilerEntry> &Val) {
+ return Val->Name == E.Name;
})) {
auto &CountAndTotal = CountAndTotalPerName[E.Name];
CountAndTotal.first++;
CountAndTotal.second += Duration;
- }
+ };
----------------
ZequanWu wrote:
Unnecessary change.
```suggestion
}
```
https://github.com/llvm/llvm-project/pull/83961
More information about the cfe-commits
mailing list