diff options
Diffstat (limited to 'compiler-rt/lib/xray')
-rw-r--r-- | compiler-rt/lib/xray/xray_profile_collector.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler-rt/lib/xray/xray_profile_collector.cc b/compiler-rt/lib/xray/xray_profile_collector.cc index 5f014ee633d..2c91d7b9f6d 100644 --- a/compiler-rt/lib/xray/xray_profile_collector.cc +++ b/compiler-rt/lib/xray/xray_profile_collector.cc @@ -95,7 +95,8 @@ void post(const FunctionCallTrie &T, tid_t TId) XRAY_NEVER_INSTRUMENT { if (GlobalAllocators == nullptr || ThreadTries == nullptr) return; - Item = ThreadTries->Append(ThreadTrie()); + ThreadTrie Empty; + Item = ThreadTries->AppendEmplace(Empty); if (Item == nullptr) return; |