[Lldb-commits] [lldb] r132588 - in /lldb/trunk: include/lldb/Utility/SharedCluster.h source/Target/ThreadPlanCallFunction.cpp

Peter Collingbourne peter at pcc.me.uk
Fri Jun 3 13:41:09 PDT 2011


Author: pcc
Date: Fri Jun  3 15:41:09 2011
New Revision: 132588

URL: http://llvm.org/viewvc/llvm-project?rev=132588&view=rev
Log:
Fix some order-of-initialisation warnings

Modified:
    lldb/trunk/include/lldb/Utility/SharedCluster.h
    lldb/trunk/source/Target/ThreadPlanCallFunction.cpp

Modified: lldb/trunk/include/lldb/Utility/SharedCluster.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/Utility/SharedCluster.h?rev=132588&r1=132587&r2=132588&view=diff
==============================================================================
--- lldb/trunk/include/lldb/Utility/SharedCluster.h (original)
+++ lldb/trunk/include/lldb/Utility/SharedCluster.h Fri Jun  3 15:41:09 2011
@@ -21,7 +21,7 @@
     class shared_ptr_refcount : public lldb_private::imp::shared_count
     {
     public:
-        template<class Y> shared_ptr_refcount (Y *in) : manager(in), shared_count (0) {}
+        template<class Y> shared_ptr_refcount (Y *in) : shared_count (0), manager(in) {}
         
         shared_ptr_refcount() : shared_count (0) {}
         
@@ -44,8 +44,8 @@
 {
 public:
     ClusterManager () : 
-        m_external_ref(0),
         m_objects(),
+        m_external_ref(0),
         m_mutex(Mutex::eMutexTypeNormal) {}
     
     ~ClusterManager ()

Modified: lldb/trunk/source/Target/ThreadPlanCallFunction.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Target/ThreadPlanCallFunction.cpp?rev=132588&r1=132587&r2=132588&view=diff
==============================================================================
--- lldb/trunk/source/Target/ThreadPlanCallFunction.cpp (original)
+++ lldb/trunk/source/Target/ThreadPlanCallFunction.cpp Fri Jun  3 15:41:09 2011
@@ -45,10 +45,10 @@
     ThreadPlan (ThreadPlan::eKindCallFunction, "Call function plan", thread, eVoteNoOpinion, eVoteNoOpinion),
     m_valid (false),
     m_stop_other_threads (stop_other_threads),
+    m_function_sp (NULL),
     m_process (thread.GetProcess()),
     m_thread (thread),
-    m_takedown_done (false),
-    m_function_sp (NULL)
+    m_takedown_done (false)
 {
     SetOkayToDiscard (discard_on_error);
 
@@ -158,10 +158,10 @@
     ThreadPlan (ThreadPlan::eKindCallFunction, "Call function plan", thread, eVoteNoOpinion, eVoteNoOpinion),
     m_valid (false),
     m_stop_other_threads (stop_other_threads),
+    m_function_sp(NULL),
     m_process (thread.GetProcess()),
     m_thread (thread),
-    m_takedown_done (false),
-    m_function_sp(NULL)
+    m_takedown_done (false)
 {
     SetOkayToDiscard (discard_on_error);
     





More information about the lldb-commits mailing list