Skip to content

Commit 4401942

Browse files
haoxian2pcolberg
authored andcommitted
acl_profiler: Add assert to check for nullptr for accel_def
acl_find_accel_def ensures that the returned value is not NULL.
1 parent 415af2e commit 4401942

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/acl_profiler.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -614,6 +614,7 @@ CL_API_ENTRY cl_int CL_API_CALL clGetProfileDataDeviceIntelFPGA(
614614
"autorun kernel profiling enabled";
615615
ERR_RET(status, program->context, message);
616616
}
617+
assert(accel_def != NULL);
617618

618619
// use autodiscovery info to find out how many words will be read from the
619620
// profiler

0 commit comments

Comments
 (0)