diff options
author | Dean Michael Berris <dberris@google.com> | 2018-12-06 02:55:47 +0000 |
---|---|---|
committer | Dean Michael Berris <dberris@google.com> | 2018-12-06 02:55:47 +0000 |
commit | 889d20715ea1144b812e589a008746cbcab052ff (patch) | |
tree | 53ba088f5463983db69a57a6efb0612b80daa4a8 /compiler-rt/lib/xray | |
parent | 1ae9cd7e6af627da6f56d2ea2263500950749fdf (diff) | |
download | bcm5719-llvm-889d20715ea1144b812e589a008746cbcab052ff.tar.gz bcm5719-llvm-889d20715ea1144b812e589a008746cbcab052ff.zip |
[XRay] Use a local lvalue as arg to AppendEmplace(...)
This is a follow-up to D54989.
Further work-around gcc-4.8 failing to handle brace-init with temporaries.
llvm-svn: 348449
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; |