You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Found via a static-analysis tool:
Inside VisitTemplateTemplateArgument()
TemplateDecl *TD = TA.getAsTemplate().getAsTemplateDecl(); --->Pointer 'TD' returned from call to function 'getAsTemplateDecl' may be NULL
TemplateParameterList *TemplateParams = TD->getTemplateParameters(); --> will be dereferenced here
This patch fixes null pointer dereference issues in SemaSYCL.cpp file by adding assert().
Signed-off-by: Soumi Manna <[email protected]>
0 commit comments