Skip to content

Commit

Permalink
PoolAllocator: Appease linting gods...
Browse files Browse the repository at this point in the history
  • Loading branch information
mlange05 authored and reuterbal committed Feb 21, 2024
1 parent 6ca150c commit a610f9d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions transformations/transformations/pool_allocator.py
Original file line number Diff line number Diff line change
Expand Up @@ -759,8 +759,9 @@ def inject_pool_allocator_into_calls(self, routine, targets, ignore):
call_map = {}
for call in FindInlineCalls().visit(routine.body):
if call.name.lower() in [t.lower() for t in targets]:
parameters = call.parameters
call_map[call] = call.clone(kw_parameters=as_tuple(call.kw_parameters) + new_kwarguments)
call_map[call] = call.clone(
kw_parameters=as_tuple(call.kw_parameters) + new_kwarguments
)

if call_map:
routine.body = SubstituteExpressions(call_map).visit(routine.body)

0 comments on commit a610f9d

Please sign in to comment.