Skip to content

Commit bfdddb9

Browse files
committed
Fixup: set correctly the scope using stmt.target
1 parent 0ca76a7 commit bfdddb9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/numba/openmp/omp_ir.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ def replace_np_empty_with_cuda_shared(
348348
new_block_body.append(
349349
ir.Assign(
350350
ir.Global("np", np, stmt.loc),
351-
ir.Var(stmt.scope, mk_unique_var(".np_global"), stmt.loc),
351+
ir.Var(stmt.target.scope, mk_unique_var(".np_global"), stmt.loc),
352352
stmt.loc,
353353
)
354354
)
@@ -358,7 +358,7 @@ def replace_np_empty_with_cuda_shared(
358358
ir.Expr.getattr(
359359
new_block_body[-1].target, str(dtype_to_use), stmt.loc
360360
),
361-
ir.Var(stmt.scope, mk_unique_var(".np_dtype"), stmt.loc),
361+
ir.Var(stmt.target.scope, mk_unique_var(".np_dtype"), stmt.loc),
362362
stmt.loc,
363363
)
364364
)

0 commit comments

Comments
 (0)