[all-commits] [llvm/llvm-project] c3e7c6: [NFC][CLANG] Fix static code analyzer concerns
smanna12 via All-commits
all-commits at lists.llvm.org
Thu May 25 20:05:12 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: c3e7c6e9e0809e2626253af584c7d7acfc4ce60b
https://github.com/llvm/llvm-project/commit/c3e7c6e9e0809e2626253af584c7d7acfc4ce60b
Author: Manna, Soumi <soumi.manna at intel.com>
Date: 2023-05-25 (Thu, 25 May 2023)
Changed paths:
M clang/lib/CodeGen/CGExprConstant.cpp
Log Message:
-----------
[NFC][CLANG] Fix static code analyzer concerns
Reported by Static Code Analyzer Tool:
Inside "CGExprConstant.cpp" file, VisitObjCEncodeExpr() returns null value which is dereferenced without checking.
This patch adds an assert.
Reviewed By: erichkeane
Differential Revision: https://reviews.llvm.org/D151280
More information about the All-commits
mailing list