Revert "Update OperationAnnotation to use SetOnce for userDefinedFunction"

This reverts commit 29707c7b9a4884f0a5a8ada47cce4859401c8d53.
This commit is contained in:
wechman
2022-09-28 13:07:57 +02:00
parent d124f83b88
commit 70255f8776
9 changed files with 21 additions and 26 deletions
@@ -673,7 +673,7 @@ bool IRGeneratorForStatements::visit(UnaryOperation const& _unaryOperation)
{
setLocation(_unaryOperation);
if (FunctionDefinition const* function = *_unaryOperation.annotation().userDefinedFunction)
if (FunctionDefinition const* function = _unaryOperation.annotation().userDefinedFunction)
{
_unaryOperation.subExpression().accept(*this);
setLocation(_unaryOperation);
@@ -817,7 +817,7 @@ bool IRGeneratorForStatements::visit(BinaryOperation const& _binOp)
{
setLocation(_binOp);
if (FunctionDefinition const* function = *_binOp.annotation().userDefinedFunction)
if (FunctionDefinition const* function = _binOp.annotation().userDefinedFunction)
{
_binOp.leftExpression().accept(*this);
_binOp.rightExpression().accept(*this);