Skip to content

Commit 713ceea

Browse files
committed
fixed dereferency sampler variable
1 parent de803d8 commit 713ceea

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/acl_kernel.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -639,6 +639,7 @@ CL_API_ENTRY cl_int CL_API_CALL clSetKernelArgIntelFPGA(cl_kernel kernel,
639639
kernel->arg_is_ptr[arg_index] = CL_FALSE;
640640
} else if (is_sampler) {
641641
cl_sampler sampler = *(cl_sampler *)arg_value;
642+
assert(sampler);
642643
int sampler_bitfield = 0;
643644

644645
sampler_bitfield = 0;

0 commit comments

Comments
 (0)