Skip to content

Commit 2a1b3ac

Browse files
author
Sergey Kanaev
committed
Add assertion
Signed-off-by: Sergey Kanaev <[email protected]>
1 parent 84502a7 commit 2a1b3ac

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sycl/plugins/opencl/pi_opencl.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ static pi_result getExtFuncFromContext(pi_context context, T *fptr) {
145145
// Potentially redo caching as PI interface changes.
146146
ExtFuncsPerContextT *PerContext = nullptr;
147147
{
148+
assert(ExtFuncsCaches);
148149
std::lock_guard<std::mutex> Lock{ExtFuncsCaches->Mtx};
149150

150151
PerContext = &ExtFuncsCaches->Caches[context];

0 commit comments

Comments
 (0)