[SMTChecker] Fix bad cast in base constructor modifier.

This commit is contained in:
Leonardo Alt
2019-04-30 18:48:13 +02:00
parent b6bcd8a153
commit a6db37ac9c
4 changed files with 24 additions and 2 deletions
+7 -2
View File
@@ -101,13 +101,18 @@ bool SMTChecker::visit(ModifierDefinition const&)
bool SMTChecker::visit(FunctionDefinition const& _function)
{
m_functionPath.push_back(&_function);
m_modifierDepthStack.push_back(-1);
if (_function.isConstructor())
{
m_errorReporter.warning(
_function.location(),
"Assertion checker does not yet support constructors."
);
m_functionPath.push_back(&_function);
m_modifierDepthStack.push_back(-1);
return false;
}
// Not visited by a function call
if (isRootFunction())
{