llvm.org GIT mirror llvm / 9275184
[Remarks] Fix mismatched delete due to missing virtual destructor This fixes an asan failure introduced in r356519. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@356583 91177308-0d34-0410-b5e6-96231b3b80d8 Jordan Rupprecht 5 months ago
1 changed file(s) with 4 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
1818 struct ParserImpl {
1919 enum class Kind { YAML };
2020
21 explicit ParserImpl(Kind TheParserKind) : ParserKind(TheParserKind) {}
22 // Virtual destructor prevents mismatched deletes
23 virtual ~ParserImpl() {}
24
2125 // The parser kind. This is used as a tag to safely cast between
2226 // implementations.
2327 Kind ParserKind;