mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Throw if calling the identity precompile (memoryCopy) failed
This commit is contained in:
@@ -312,7 +312,8 @@ void CompilerUtils::memoryCopy()
|
||||
m_context << Instruction::DIV << u256(c_identityWordGas) << Instruction::MUL;
|
||||
m_context << u256(c_identityGas) << Instruction::ADD;
|
||||
m_context << Instruction::CALL;
|
||||
m_context << Instruction::POP; // ignore return value
|
||||
m_context << Instruction::ISZERO;
|
||||
m_context.appendConditionalJumpTo(m_context.errorTag());
|
||||
}
|
||||
|
||||
void CompilerUtils::splitExternalFunctionType(bool _leftAligned)
|
||||
|
||||
Reference in New Issue
Block a user