Use "in" tag for jumps from unpacker to function.

This commit is contained in:
chriseth
2018-11-26 11:02:58 +01:00
committed by Leonardo Alt
parent 96333f3033
commit 0e08fb7469
2 changed files with 8 additions and 2 deletions
+4 -1
View File
@@ -344,7 +344,10 @@ void ContractCompiler::appendFunctionSelector(ContractDefinition const& _contrac
m_context << Instruction::DUP1 << Instruction::CALLDATASIZE << Instruction::SUB;
CompilerUtils(m_context).abiDecode(functionType->parameterTypes());
}
m_context.appendJumpTo(m_context.functionEntryLabel(functionType->declaration()));
m_context.appendJumpTo(
m_context.functionEntryLabel(functionType->declaration()),
eth::AssemblyItem::JumpType::IntoFunction
);
m_context << returnTag;
// Return tag and input parameters get consumed.
m_context.adjustStackOffset(