From 97bdb04a3b7d29d909a3e2292b9f0fe4fa59213b Mon Sep 17 00:00:00 2001 From: Vitaly Buka Date: Wed, 24 Apr 2019 19:01:04 +0000 Subject: [PATCH] [compiler-rt] Fix warning about virtual destructor in sanitizer_flag_parser.h llvm-svn: 359125 --- compiler-rt/lib/sanitizer_common/sanitizer_flag_parser.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_flag_parser.h b/compiler-rt/lib/sanitizer_common/sanitizer_flag_parser.h index b536e47..446c073 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_flag_parser.h +++ b/compiler-rt/lib/sanitizer_common/sanitizer_flag_parser.h @@ -22,6 +22,9 @@ namespace __sanitizer { class FlagHandlerBase { public: virtual bool Parse(const char *value) { return false; } + + protected: + ~FlagHandlerBase(){}; }; template -- 2.7.4