diff options
author | chriseth <chris@ethereum.org> | 2017-12-01 21:10:49 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2017-12-01 23:18:01 +0800 |
commit | 43bb915454e210ed7c201eb58b33c7ffe8dfbdb1 (patch) | |
tree | 7c7af1babeaef919afce5be106470061fcd0944b /libsolidity/inlineasm/AsmAnalysis.cpp | |
parent | d0af0c14841648365ad05ecc626e672a16df5b5c (diff) | |
download | dexon-solidity-43bb915454e210ed7c201eb58b33c7ffe8dfbdb1.tar.gz dexon-solidity-43bb915454e210ed7c201eb58b33c7ffe8dfbdb1.tar.zst dexon-solidity-43bb915454e210ed7c201eb58b33c7ffe8dfbdb1.zip |
Rename arguments to paramaters and returns to returnVariables.
Diffstat (limited to 'libsolidity/inlineasm/AsmAnalysis.cpp')
-rw-r--r-- | libsolidity/inlineasm/AsmAnalysis.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libsolidity/inlineasm/AsmAnalysis.cpp b/libsolidity/inlineasm/AsmAnalysis.cpp index 2804ddfc..c55355e2 100644 --- a/libsolidity/inlineasm/AsmAnalysis.cpp +++ b/libsolidity/inlineasm/AsmAnalysis.cpp @@ -217,14 +217,14 @@ bool AsmAnalyzer::operator()(assembly::FunctionDefinition const& _funDef) Block const* virtualBlock = m_info.virtualBlocks.at(&_funDef).get(); solAssert(virtualBlock, ""); Scope& varScope = scope(virtualBlock); - for (auto const& var: _funDef.arguments + _funDef.returns) + for (auto const& var: _funDef.parameters + _funDef.returnVariables) { expectValidType(var.type, var.location); m_activeVariables.insert(&boost::get<Scope::Variable>(varScope.identifiers.at(var.name))); } int const stackHeight = m_stackHeight; - m_stackHeight = _funDef.arguments.size() + _funDef.returns.size(); + m_stackHeight = _funDef.parameters.size() + _funDef.returnVariables.size(); bool success = (*this)(_funDef.body); |