Merge pull request #9243 from ethereum/jumpTypesForYul

Jump types for yul functions.
This commit is contained in:
chriseth
2020-07-07 12:21:14 +02:00
committed by GitHub
14 changed files with 151 additions and 35 deletions
+1 -1
View File
@@ -146,7 +146,7 @@ void CompilerContext::callYulFunction(
m_externallyUsedYulFunctions.insert(_name);
auto const retTag = pushNewTag();
CompilerUtils(*this).moveIntoStack(_inArgs);
appendJumpTo(namedTag(_name));
appendJumpTo(namedTag(_name), evmasm::AssemblyItem::JumpType::IntoFunction);
adjustStackOffset(static_cast<int>(_outArgs) - 1 - static_cast<int>(_inArgs));
*this << retTag.tag();
}