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

Eric Christopher echristo at gmail.com
Fri Mar 15 00:07:38 PDT 2013


On Thu, Mar 14, 2013 at 11:21 PM, Alexey Samsonov <samsonov at google.com>wrote:

>
> On Fri, Mar 15, 2013 at 4:20 AM, Eric Christopher <echristo at gmail.com>wrote:
>
>> 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!
>>
>
> Thanks! Should we make this warning fire in CMake build +
> LLVM_ENABLE_WERROR?
>
>

Mmm. Probably.

-eric


>
>> 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.
>>
>>
>> _______________________________________________
>> llvm-commits mailing list
>> llvm-commits at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>>
>
>
>
> --
> Alexey Samsonov, MSK
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130315/50c9407a/attachment.html>


More information about the llvm-commits mailing list