Reported by Static Analyzer Tool:
Dereference null return value
Inside "CGExprConstant.cpp" file, in VisitObjCEncodeExpr(): Return value of function which returns null is dereferenced without checking.
This patch adds an assert.
Differential D151280
[NFC][CLANG] Fix static code analyzer concerns Manna on May 23 2023, 8:04 PM. Authored by
Details
Reported by Static Analyzer Tool: Dereference null return value Inside "CGExprConstant.cpp" file, in VisitObjCEncodeExpr(): Return value of function which returns null is dereferenced without checking. This patch adds an assert.
Diff Detail
Event Timeline
|
The assert message doesn't make sense here? This isn't an initializer for an array?