summaryrefslogtreecommitdiff
path: root/src/parser
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser')
-rw-r--r--src/parser/cvc/cvc_input.h2
-rw-r--r--src/parser/parser_builder.cpp1
-rw-r--r--src/parser/smt/smt_input.h2
3 files changed, 3 insertions, 2 deletions
diff --git a/src/parser/cvc/cvc_input.h b/src/parser/cvc/cvc_input.h
index 45a0edf95..efe0a522f 100644
--- a/src/parser/cvc/cvc_input.h
+++ b/src/parser/cvc/cvc_input.h
@@ -51,7 +51,7 @@ public:
CvcInput(AntlrInputStream& inputStream);
/** Destructor. Frees the lexer and the parser. */
- ~CvcInput();
+ virtual ~CvcInput();
/** Get the language that this Input is reading. */
InputLanguage getLanguage() const throw() {
diff --git a/src/parser/parser_builder.cpp b/src/parser/parser_builder.cpp
index 9773445ed..d4725c4bc 100644
--- a/src/parser/parser_builder.cpp
+++ b/src/parser/parser_builder.cpp
@@ -89,6 +89,7 @@ Parser *ParserBuilder::build()
break;
default:
parser = new Parser(d_exprManager, input, d_strictMode, d_parseOnly);
+ break;
}
if( d_checksEnabled ) {
diff --git a/src/parser/smt/smt_input.h b/src/parser/smt/smt_input.h
index 0ab382c73..2fb037f06 100644
--- a/src/parser/smt/smt_input.h
+++ b/src/parser/smt/smt_input.h
@@ -53,7 +53,7 @@ public:
SmtInput(AntlrInputStream& inputStream);
/** Destructor. Frees the lexer and the parser. */
- ~SmtInput();
+ virtual ~SmtInput();
/** Get the language that this Input is reading. */
InputLanguage getLanguage() const throw() {
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback