mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix forwarding revert.
This commit is contained in:
parent
850c25bf8e
commit
b06a09fd82
@ -3792,11 +3792,13 @@ string YulUtilFunctions::forwardingRevertFunction()
|
||||
if (forward)
|
||||
return Whiskers(R"(
|
||||
function <functionName>() {
|
||||
returndatacopy(0, 0, returndatasize())
|
||||
revert(0, returndatasize())
|
||||
let pos := <allocateUnbounded>()
|
||||
returndatacopy(pos, 0, returndatasize())
|
||||
revert(pos, returndatasize())
|
||||
}
|
||||
)")
|
||||
("functionName", functionName)
|
||||
("allocateUnbounded", allocateUnboundedFunction())
|
||||
.render();
|
||||
else
|
||||
return Whiskers(R"(
|
||||
|
Loading…
Reference in New Issue
Block a user