Skip to content
Snippets Groups Projects
Commit db96f4ee authored by Stéphane Del Pino's avatar Stéphane Del Pino
Browse files

Fix initialization checking for function arguments

parent 46349766
No related branches found
No related tags found
1 merge request!37Feature/language
...@@ -29,10 +29,6 @@ ASTSymbolInitializationChecker::_checkSymbolInitialization(ASTNode& node) ...@@ -29,10 +29,6 @@ ASTSymbolInitializationChecker::_checkSymbolInitialization(ASTNode& node)
this->_checkSymbolInitialization(function_descriptor.definitionNode()); this->_checkSymbolInitialization(function_descriptor.definitionNode());
} else if (node.is<language::function_definition>()) { } else if (node.is<language::function_definition>()) {
const std::string& symbol = node.children[0]->string();
auto [i_symbol, found] = node.m_symbol_table->find(symbol, node.children[0]->begin());
Assert(found, "unexpected error, should have been detected through declaration checking");
i_symbol->attributes().setIsInitialized();
this->_checkSymbolInitialization(*node.children[1]); this->_checkSymbolInitialization(*node.children[1]);
} else if (node.is<language::eq_op>()) { } else if (node.is<language::eq_op>()) {
// first checks for right hand side // first checks for right hand side
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment