Fix 'switch' style in FunctionCallGraph

This commit is contained in:
Kamil Śliwak 2021-02-23 14:02:35 +01:00
parent 7a85516b82
commit f58b64800f

View File

@ -262,13 +262,14 @@ ostream& solidity::frontend::operator<<(ostream& _out, CallGraph::Node const& _n
if (holds_alternative<CallGraph::SpecialNode>(_node)) if (holds_alternative<CallGraph::SpecialNode>(_node))
switch (get<CallGraph::SpecialNode>(_node)) switch (get<CallGraph::SpecialNode>(_node))
{ {
case CallGraph::SpecialNode::InternalDispatch: case CallGraph::SpecialNode::InternalDispatch:
_out << "InternalDispatch"; _out << "InternalDispatch";
break; break;
case CallGraph::SpecialNode::Entry: case CallGraph::SpecialNode::Entry:
_out << "Entry"; _out << "Entry";
break; break;
default: solAssert(false, "Invalid SpecialNode type"); default:
solAssert(false, "Invalid SpecialNode type");
} }
else else
{ {