Skip to content

Commit

Permalink
Inline: Better way to skip intrinsic function calls in stmt func inliner
Browse files Browse the repository at this point in the history
Co-authored-by: Balthasar Reuter <[email protected]>
  • Loading branch information
mlange05 and reuterbal authored Dec 18, 2024
1 parent e1c8065 commit 53394c7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions loki/transformations/inline/mapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@ def map_procedure_symbol(self, expr, *args, **kwargs):
return expr.clone(parent=parent)

def map_inline_call(self, expr, *args, **kwargs):
if expr.procedure_type is None or expr.procedure_type is BasicType.DEFERRED \
or expr.procedure_type.is_intrinsic:
if expr.procedure_type in (None, BasicType.DEFERRED) or expr.procedure_type.is_intrinsic:
# Unkonw inline call, potentially an intrinsic
# We still need to recurse and ensure re-scoping
return super().map_inline_call(expr, *args, **kwargs)
Expand Down

0 comments on commit 53394c7

Please sign in to comment.