mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Adjustments after review
This commit is contained in:
@@ -97,7 +97,7 @@ bool ControlFlowBuilder::visit(BinaryOperation const& _operation)
|
||||
|
||||
bool ControlFlowBuilder::visit(UnaryOperation const& _operation)
|
||||
{
|
||||
solAssert(!!m_currentNode, "");
|
||||
solAssert(!!m_currentNode);
|
||||
|
||||
if (_operation.annotation().userDefinedFunction)
|
||||
{
|
||||
@@ -112,7 +112,7 @@ bool ControlFlowBuilder::visit(UnaryOperation const& _operation)
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
return ASTConstVisitor::visit(_operation);
|
||||
}
|
||||
|
||||
bool ControlFlowBuilder::visit(Conditional const& _conditional)
|
||||
|
||||
@@ -29,8 +29,8 @@ using namespace solidity::frontend;
|
||||
FunctionDefinition const* CFGNode::resolveFunctionCall(ContractDefinition const* _mostDerivedContract) const
|
||||
{
|
||||
return std::visit(GenericVisitor{
|
||||
[=](FunctionCall const* _funCall) { return _funCall ? ASTNode::resolveFunctionCall(*_funCall, _mostDerivedContract) : nullptr; },
|
||||
[](FunctionDefinition const* _funDef) { return _funDef; }
|
||||
[=](FunctionCall const* _call) { return _call ? ASTNode::resolveFunctionCall(*_call, _mostDerivedContract) : nullptr; },
|
||||
[](FunctionDefinition const* _definition) { return _definition; }
|
||||
}, functionCall);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user