We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ca76a7 commit bfdddb9Copy full SHA for bfdddb9
src/numba/openmp/omp_ir.py
@@ -348,7 +348,7 @@ def replace_np_empty_with_cuda_shared(
348
new_block_body.append(
349
ir.Assign(
350
ir.Global("np", np, stmt.loc),
351
- ir.Var(stmt.scope, mk_unique_var(".np_global"), stmt.loc),
+ ir.Var(stmt.target.scope, mk_unique_var(".np_global"), stmt.loc),
352
stmt.loc,
353
)
354
@@ -358,7 +358,7 @@ def replace_np_empty_with_cuda_shared(
358
ir.Expr.getattr(
359
new_block_body[-1].target, str(dtype_to_use), stmt.loc
360
),
361
- ir.Var(stmt.scope, mk_unique_var(".np_dtype"), stmt.loc),
+ ir.Var(stmt.target.scope, mk_unique_var(".np_dtype"), stmt.loc),
362
363
364
0 commit comments