Use VisitorBase::getZeroInit()
or ConstantFolder::synthesizeLiteral()
for assignments and initializations of variables
#1074
Labels
Currently not all variables initialized or assigned to a value use
VisitorBase::getZeroInit()
orConstantFolder::synthesizeLiteral()
accordingly. Hence, the code is mixed or these functions are not used at all, as the Forward Mode tests indicate.Example:
The code produced is:
As the comment indicates, the var
sum
should be initialized as so:The text was updated successfully, but these errors were encountered: