Skip to content

Commit

Permalink
#2586 Add no argument condition for => null().
Browse files Browse the repository at this point in the history
  • Loading branch information
JulienRemy committed Jul 15, 2024
1 parent 3c3c01b commit 23d5d4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/psyclone/psyir/frontend/fparser2.py
Original file line number Diff line number Diff line change
Expand Up @@ -5135,7 +5135,7 @@ def _call_handler(self, node, parent):
# `Intrinsic_Function_Reference` so we redirect to the correct
# handler for fparser2 tests to pass. This should be removed once
# fparser2 is fixed.
if str(node.items[0]).lower() == "null":
if str(node.items[0]).lower() == "null" and node.items[1] is None:
return self._intrinsic_handler(node, parent)
self.process_nodes(parent=call, nodes=[node.items[0]])
routine = call.children[0]
Expand Down

0 comments on commit 23d5d4d

Please sign in to comment.