[Lldb-commits] [PATCH] D109339: Fix compilation error with older libstdc++

Vadim Chugunov via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Mon Sep 13 20:21:38 PDT 2021


vadimcn updated this revision to Diff 372391.
vadimcn added a comment.

Re-formatted


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D109339/new/

https://reviews.llvm.org/D109339

Files:
  lldb/include/lldb/Target/ThreadPlanStack.h


Index: lldb/include/lldb/Target/ThreadPlanStack.h
===================================================================
--- lldb/include/lldb/Target/ThreadPlanStack.h
+++ lldb/include/lldb/Target/ThreadPlanStack.h
@@ -124,7 +124,8 @@
 
   void AddThread(Thread &thread) {
     lldb::tid_t tid = thread.GetID();
-    m_plans_list.emplace(tid, thread);
+    m_plans_list.emplace(std::piecewise_construct, std::forward_as_tuple(tid),
+                         std::forward_as_tuple(thread));
   }
 
   bool RemoveTID(lldb::tid_t tid) {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D109339.372391.patch
Type: text/x-patch
Size: 531 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20210914/878e9cc0/attachment.bin>


More information about the lldb-commits mailing list