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:
1. Inside leaveStruct()
RecordDecl *RD = Ty->getAsRecordDecl(); ---> Pointer 'RD' may be NULL
if (!RD->hasAttr<SYCLRequiresDecompositionAttr>()) ----> will be dereferenced here
2. Inside visitRecord() function, Pointer 'RecordTy->getAsRecordDecl()' returned from
call to function 'getAsRecordDecl' at line
“if (RecordTy->getAsRecordDecl()->hasAttr<SYCLRequiresDecompositionAttr>()) {“
may be NULL and will be dereferenced at same line.
This patch fixes null pointer dereference issues in SemaSYCL.cpp file.
Signed-off-by: Soumi Manna <[email protected]>
0 commit comments