diff options
author | Ivan Krasin <krasin@chromium.org> | 2017-04-06 17:58:45 +0000 |
---|---|---|
committer | Ivan Krasin <krasin@chromium.org> | 2017-04-06 17:58:45 +0000 |
commit | 0536342a37dcd79009a74983d0d265bc2585d686 (patch) | |
tree | a01125deea18812991dc61e70fe6da29fa8dbe50 /lib/sanitizer_common/sanitizer_flag_parser.h | |
parent | 9ba14dedfd9580d20d665a9bd02851ae30c0272f (diff) | |
download | compiler-rt-0536342a37dcd79009a74983d0d265bc2585d686.tar.gz |
Add a virtual destructor to a class with virtual methods.
Summary:
Recently, Clang enabled the check for virtual destructors
in the presence of virtual methods. That broke the bootstrap
build. Fixing it.
Reviewers: pcc
Reviewed By: pcc
Subscribers: llvm-commits, kubamracek
Differential Revision: https://reviews.llvm.org/D31776
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@299672 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/sanitizer_common/sanitizer_flag_parser.h')
-rw-r--r-- | lib/sanitizer_common/sanitizer_flag_parser.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/sanitizer_common/sanitizer_flag_parser.h b/lib/sanitizer_common/sanitizer_flag_parser.h index 2477aeddb..18f1adc12 100644 --- a/lib/sanitizer_common/sanitizer_flag_parser.h +++ b/lib/sanitizer_common/sanitizer_flag_parser.h @@ -22,6 +22,7 @@ namespace __sanitizer { class FlagHandlerBase { public: + virtual ~FlagHandlerBase() {} virtual bool Parse(const char *value) { return false; } }; |