[compiler-rt] r359125 - [compiler-rt] Fix warning about virtual destructor in sanitizer_flag_parser.h
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 24 12:01:04 PDT 2019
Author: vitalybuka
Date: Wed Apr 24 12:01:04 2019
New Revision: 359125
URL: http://llvm.org/viewvc/llvm-project?rev=359125&view=rev
Log:
[compiler-rt] Fix warning about virtual destructor in sanitizer_flag_parser.h
Modified:
compiler-rt/trunk/lib/sanitizer_common/sanitizer_flag_parser.h
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_flag_parser.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_flag_parser.h?rev=359125&r1=359124&r2=359125&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_flag_parser.h (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_flag_parser.h Wed Apr 24 12:01:04 2019
@@ -22,6 +22,9 @@ namespace __sanitizer {
class FlagHandlerBase {
public:
virtual bool Parse(const char *value) { return false; }
+
+ protected:
+ ~FlagHandlerBase(){};
};
template <typename T>
More information about the llvm-commits
mailing list