diff options
author | chriseth <chris@ethereum.org> | 2017-12-04 19:49:44 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-04 19:49:44 +0800 |
commit | 240c79e61450d69f45356242924c23adf2a004b4 (patch) | |
tree | 31ea5a98476602c0d5add625827259ba37dd3d1a /libsolidity/inlineasm/AsmAnalysis.cpp | |
parent | 4cad0b224b0f0913100c5957bef98786dc5a31c2 (diff) | |
parent | 43bb915454e210ed7c201eb58b33c7ffe8dfbdb1 (diff) | |
download | dexon-solidity-240c79e61450d69f45356242924c23adf2a004b4.tar.gz dexon-solidity-240c79e61450d69f45356242924c23adf2a004b4.tar.zst dexon-solidity-240c79e61450d69f45356242924c23adf2a004b4.zip |
Merge pull request #3265 from ethereum/rename_args_to_params
Rename arguments to parameters.
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); |