[libcxxabi] r206942 - Fix virtual class with non-virtual dtor complaint
Dan Albert
danalbert at google.com
Tue Apr 22 21:46:46 PDT 2014
Author: danalbert
Date: Tue Apr 22 23:46:46 2014
New Revision: 206942
URL: http://llvm.org/viewvc/llvm-project?rev=206942&view=rev
Log:
Fix virtual class with non-virtual dtor complaint
Fixes compiler complaint about:
src/Unwind/UnwindCursor.hpp:366:25: error: 'libunwind::AbstractUnwindCursor' has virtual functions but non-virtual destructor [-Werror,-Wnon-virtual-dtor]
Modified:
libcxxabi/trunk/src/Unwind/UnwindCursor.hpp
Modified: libcxxabi/trunk/src/Unwind/UnwindCursor.hpp
URL: http://llvm.org/viewvc/llvm-project/libcxxabi/trunk/src/Unwind/UnwindCursor.hpp?rev=206942&r1=206941&r2=206942&view=diff
==============================================================================
--- libcxxabi/trunk/src/Unwind/UnwindCursor.hpp (original)
+++ libcxxabi/trunk/src/Unwind/UnwindCursor.hpp Tue Apr 22 23:46:46 2014
@@ -365,6 +365,7 @@ private:
class _LIBUNWIND_HIDDEN AbstractUnwindCursor {
public:
+ virtual ~AbstractUnwindCursor() {}
virtual bool validReg(int) = 0;
virtual unw_word_t getReg(int) = 0;
virtual void setReg(int, unw_word_t) = 0;
More information about the cfe-commits
mailing list