[compiler-rt] r177132 - Fix a virtual destructor warning.

Eric Christopher echristo at gmail.com
Thu Mar 14 17:20:18 PDT 2013


Author: echristo
Date: Thu Mar 14 19:20:17 2013
New Revision: 177132

URL: http://llvm.org/viewvc/llvm-project?rev=177132&view=rev
Log:
Fix a virtual destructor warning.

Patch by Manuel Klimek!

Modified:
    compiler-rt/trunk/lib/sanitizer_common/sanitizer_thread_registry.cc
    compiler-rt/trunk/lib/sanitizer_common/sanitizer_thread_registry.h

Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_thread_registry.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_thread_registry.cc?rev=177132&r1=177131&r2=177132&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_thread_registry.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_thread_registry.cc Thu Mar 14 19:20:17 2013
@@ -22,6 +22,8 @@ ThreadContextBase::ThreadContextBase(u32
   name[0] = '\0';
 }
 
+ThreadContextBase::~ThreadContextBase() {}
+
 void ThreadContextBase::SetName(const char *new_name) {
   name[0] = '\0';
   if (new_name) {

Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_thread_registry.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_thread_registry.h?rev=177132&r1=177131&r2=177132&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_thread_registry.h (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_thread_registry.h Thu Mar 14 19:20:17 2013
@@ -34,6 +34,7 @@ enum ThreadStatus {
 class ThreadContextBase {
  public:
   explicit ThreadContextBase(u32 tid);
+  virtual ~ThreadContextBase();
 
   const u32 tid;  // Thread ID. Main thread should have tid = 0.
   u64 unique_id;  // Unique thread ID.





More information about the llvm-commits mailing list