Inheritance in compiler.

This commit is contained in:
Christian
2015-01-19 23:35:04 +01:00
parent e6c0a9b922
commit 4d833bc86b
4 changed files with 30 additions and 11 deletions
+1 -1
View File
@@ -453,7 +453,7 @@ void ExpressionCompiler::endVisit(Identifier const& _identifier)
}
if (FunctionDefinition const* functionDef = dynamic_cast<FunctionDefinition const*>(declaration))
{
m_context << m_context.getFunctionEntryLabel(*functionDef).pushTag();
m_context << m_context.getVirtualFunctionEntryLabel(*functionDef).pushTag();
return;
}
if (dynamic_cast<VariableDeclaration const*>(declaration))