gpu.c: transform_expr: dereference pointers to scalars
commita72d1107f1b89ab03b4b216b2598bf4a96d2b928
authorSven Verdoolaege <skimo@kotnet.org>
Fri, 6 Sep 2013 08:25:00 +0000 (6 10:25 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Fri, 6 Sep 2013 08:32:44 +0000 (6 10:32 +0200)
tree3611a870f621814e6798e7813d62600044af7c15
parentabe3c306b6045f552f1d3bf8fc502fc78e28d301
gpu.c: transform_expr: dereference pointers to scalars

Scalars that are not read-only are passed by address to the kernels.
We therefore need to dereference them, but the dereferencing was
accidentally removed in e794808 (gpu.c: use pet_stmt_build_ast_exprs
and pet_stmt_print_body to print statements, Tue Jul 23 12:51:24 2013 +0200).

Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
gpu.c