@@ -176,9 +176,9 @@ StackSlot ControlFlowGraphBuilder::operator()(Expression const& _expression)
176
176
177
177
StackSlot ControlFlowGraphBuilder::operator ()(FunctionCall const & _call)
178
178
{
179
- CFG::Operation const & operation = visitFunctionCall (_call);
180
- yulAssert (operation. output .size () == 1 , " " );
181
- return operation. output .front ();
179
+ Stack const & output = visitFunctionCall (_call);
180
+ yulAssert (output.size () == 1 , " " );
181
+ return output.front ();
182
182
}
183
183
184
184
void ControlFlowGraphBuilder::operator ()(VariableDeclaration const & _varDecl)
@@ -219,8 +219,8 @@ void ControlFlowGraphBuilder::operator()(ExpressionStatement const& _exprStmt)
219
219
yulAssert (m_currentBlock, " " );
220
220
std::visit (util::GenericVisitor{
221
221
[&](FunctionCall const & _call) {
222
- CFG::Operation const & operation = visitFunctionCall (_call);
223
- yulAssert (operation. output .empty (), " " );
222
+ Stack const & output = visitFunctionCall (_call);
223
+ yulAssert (output.empty (), " " );
224
224
},
225
225
[&](auto const &) { yulAssert (false , " " ); }
226
226
}, _exprStmt.expression );
@@ -418,7 +418,7 @@ void ControlFlowGraphBuilder::operator()(FunctionDefinition const& _function)
418
418
}
419
419
420
420
421
- CFG::Operation const & ControlFlowGraphBuilder::visitFunctionCall (FunctionCall const & _call)
421
+ Stack const & ControlFlowGraphBuilder::visitFunctionCall (FunctionCall const & _call)
422
422
{
423
423
yulAssert (m_scope, " " );
424
424
yulAssert (m_currentBlock, " " );
@@ -439,7 +439,7 @@ CFG::Operation const& ControlFlowGraphBuilder::visitFunctionCall(FunctionCall co
439
439
}) | ranges::to<Stack>,
440
440
// operation
441
441
move (builtinCall)
442
- });
442
+ }). output ;
443
443
}
444
444
else
445
445
{
@@ -456,17 +456,17 @@ CFG::Operation const& ControlFlowGraphBuilder::visitFunctionCall(FunctionCall co
456
456
}) | ranges::to<Stack>,
457
457
// operation
458
458
CFG::FunctionCall{_call.debugData , function, _call}
459
- });
459
+ }). output ;
460
460
}
461
461
}
462
462
463
463
Stack ControlFlowGraphBuilder::visitAssignmentRightHandSide (Expression const & _expression, size_t _expectedSlotCount)
464
464
{
465
465
return std::visit (util::GenericVisitor{
466
466
[&](FunctionCall const & _call) -> Stack {
467
- CFG::Operation const & operation = visitFunctionCall (_call);
468
- yulAssert (_expectedSlotCount == operation. output .size (), " " );
469
- return operation. output ;
467
+ Stack const & output = visitFunctionCall (_call);
468
+ yulAssert (_expectedSlotCount == output.size (), " " );
469
+ return output;
470
470
},
471
471
[&](auto const & _identifierOrLiteral) -> Stack {
472
472
yulAssert (_expectedSlotCount == 1 , " " );
0 commit comments