diff options
author | Eric Christopher <echristo@gmail.com> | 2013-03-15 00:20:17 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2013-03-15 00:20:17 +0000 |
commit | c7bc60cd4bfe21868aacd8a87b13590b314ed330 (patch) | |
tree | 2906085cf342ebeb69f631ba589334f72a19a17f | |
parent | 827d4ef8b76760ef8c58612d916b8f53081bf368 (diff) | |
download | compiler-rt-c7bc60cd4bfe21868aacd8a87b13590b314ed330.tar.gz |
Fix a virtual destructor warning.
Patch by Manuel Klimek!
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177132 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/sanitizer_common/sanitizer_thread_registry.cc | 2 | ||||
-rw-r--r-- | lib/sanitizer_common/sanitizer_thread_registry.h | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/lib/sanitizer_common/sanitizer_thread_registry.cc b/lib/sanitizer_common/sanitizer_thread_registry.cc index 3454c51fb..87c36b096 100644 --- a/lib/sanitizer_common/sanitizer_thread_registry.cc +++ b/lib/sanitizer_common/sanitizer_thread_registry.cc @@ -22,6 +22,8 @@ ThreadContextBase::ThreadContextBase(u32 tid) name[0] = '\0'; } +ThreadContextBase::~ThreadContextBase() {} + void ThreadContextBase::SetName(const char *new_name) { name[0] = '\0'; if (new_name) { diff --git a/lib/sanitizer_common/sanitizer_thread_registry.h b/lib/sanitizer_common/sanitizer_thread_registry.h index a9ce771c8..38de98245 100644 --- a/lib/sanitizer_common/sanitizer_thread_registry.h +++ b/lib/sanitizer_common/sanitizer_thread_registry.h @@ -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. |