diff options
Diffstat (limited to 'libsolidity/inlineasm/AsmCodeGen.cpp')
-rw-r--r-- | libsolidity/inlineasm/AsmCodeGen.cpp | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/libsolidity/inlineasm/AsmCodeGen.cpp b/libsolidity/inlineasm/AsmCodeGen.cpp index 69ce9507..78a9ee27 100644 --- a/libsolidity/inlineasm/AsmCodeGen.cpp +++ b/libsolidity/inlineasm/AsmCodeGen.cpp @@ -188,26 +188,6 @@ public: solAssert(m_scope.identifiers.count(_label.name), ""); Scope::Label& label = boost::get<Scope::Label>(m_scope.identifiers[_label.name]); assignLabelIdIfUnset(label); - if (label.resetStackHeight) - { - size_t numVariables = boost::range::count_if( - m_scope.identifiers | boost::adaptors::map_values, - [](Scope::Identifier const& var) { return var.type() == typeid(Scope::Variable) && boost::get<Scope::Variable>(var).active; } - ); - numVariables += boost::count_if(_label.stackInfo, [](string const& s) { return !s.empty(); }); - m_state.assembly.setDeposit(m_initialDeposit + numVariables); - } - else if (label.stackAdjustment != 0) - m_state.assembly.adjustDeposit(label.stackAdjustment); - int height = m_state.assembly.deposit(); - for (auto const& identifier: _label.stackInfo | boost::adaptors::reversed) - if (!identifier.empty()) - { - solAssert(m_scope.identifiers.count(identifier), ""); - Scope::Variable& var = boost::get<Scope::Variable>(m_scope.identifiers[identifier]); - var.active = true; - var.stackHeight = --height; - } m_state.assembly.append(eth::AssemblyItem(eth::Tag, label.id)); } void operator()(assembly::Assignment const& _assignment) |