Open
Description
Static analysis has flagged, this line in SemaObjC::HandleExprPropertyRefExpr
:
llvm-project/clang/lib/Sema/SemaExprObjC.cpp
Lines 1982 to 1983 in ab95005
as possibly returning nullptr
which would make the subsequent access of IFaceT->getDecl();
UB.
Based on the documentation:
llvm-project/clang/lib/Sema/SemaExprObjC.cpp
Lines 1975 to 1976 in ab95005
and the rest of the code it seems clear that the assumption is that it will always be valid.
We could document more clearly w/ an assertion on IFaceT
.