Skip to content

Commit adb0945

Browse files
christianparpartchriseth
authored andcommitted
ParserBase has virtual functions but did not have a virtual dtor.
1 parent b7edcc5 commit adb0945

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

liblangutil/ParserBase.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ class ParserBase
4747
m_parserErrorRecovery = _parserErrorRecovery;
4848
}
4949

50+
virtual ~ParserBase() = default;
51+
5052
std::shared_ptr<CharStream> source() const { return m_scanner->charStream(); }
5153

5254
protected:

0 commit comments

Comments
 (0)