mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #8175 from ethereum/fix-7896
yul proto fuzzer: Make function call generation optional
This commit is contained in:
commit
e1139ce490
@ -1740,7 +1740,8 @@ void ProtoConverter::createFunctionDefAndCall(
|
||||
!m_inForInitScope,
|
||||
"Proto fuzzer: Trying to create function call inside for-init block"
|
||||
);
|
||||
createFunctionCall(funcName, _numInParams, _numOutParams);
|
||||
if (_x.force_call())
|
||||
createFunctionCall(funcName, _numInParams, _numOutParams);
|
||||
}
|
||||
|
||||
void ProtoConverter::visit(FunctionDef const& _x)
|
||||
|
@ -355,6 +355,7 @@ message FunctionDef {
|
||||
required uint32 num_input_params = 1;
|
||||
required uint32 num_output_params = 2;
|
||||
required Block block = 3;
|
||||
required bool force_call = 4;
|
||||
}
|
||||
|
||||
message PopStmt {
|
||||
|
Loading…
Reference in New Issue
Block a user