From 889d20715ea1144b812e589a008746cbcab052ff Mon Sep 17 00:00:00 2001 From: Dean Michael Berris Date: Thu, 6 Dec 2018 02:55:47 +0000 Subject: [PATCH] [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 --- compiler-rt/lib/xray/xray_profile_collector.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/compiler-rt/lib/xray/xray_profile_collector.cc b/compiler-rt/lib/xray/xray_profile_collector.cc index 5f014ee..2c91d7b 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; -- 2.7.4