diff --git a/src/psyclone/psyir/transformations/inline_trans.py b/src/psyclone/psyir/transformations/inline_trans.py index 2e76bb70bc..c02655b414 100644 --- a/src/psyclone/psyir/transformations/inline_trans.py +++ b/src/psyclone/psyir/transformations/inline_trans.py @@ -37,7 +37,7 @@ This module contains the InlineTrans transformation. ''' -from psyclone.errors import LazyString +from psyclone.errors import LazyString, InternalError from psyclone.psyGen import Transformation from psyclone.psyir.nodes import ( ArrayReference, ArrayOfStructuresReference, BinaryOperation, Call, @@ -677,7 +677,7 @@ def validate(self, node, options=None): f"has a named argument '{arg}' (TODO #924).") parent_routine = node.ancestor(Routine) - table = parent_routine.symbol_table # node.scope.symbol_table + table = parent_routine.symbol_table # node.scope.symbol_table routine_table = routine.symbol_table for sym in routine_table.datasymbols: