Support multiple variables in a variable declaration in inline assembly

This commit is contained in:
Alex Beregszaszi
2017-05-22 18:45:34 +01:00
parent 74d2e7311a
commit 15b4d4def2
6 changed files with 71 additions and 15 deletions
+4 -1
View File
@@ -59,7 +59,10 @@ bool ScopeFiller::operator()(Label const& _item)
bool ScopeFiller::operator()(assembly::VariableDeclaration const& _varDecl)
{
return registerVariable(_varDecl.variable, _varDecl.location, *m_currentScope);
for (auto const& variable: _varDecl.variables)
if (!registerVariable(variable, _varDecl.location, *m_currentScope))
return false;
return true;
}
bool ScopeFiller::operator()(assembly::FunctionDefinition const& _funDef)