[clang] [clang][analyzer] Fix a nullptr dereference when `-ftime-trace` is used (PR #139820)
Balazs Benics via cfe-commits
cfe-commits at lists.llvm.org
Wed May 14 06:50:19 PDT 2025
================
@@ -103,6 +103,8 @@ class SymbolConjured : public SymbolData {
const Stmt *getStmt() const {
switch (Elem->getKind()) {
case CFGElement::Initializer:
+ if (Elem->castAs<CFGInitializer>().getInitializer() == nullptr)
----------------
steakhal wrote:
+1
https://github.com/llvm/llvm-project/pull/139820
More information about the cfe-commits
mailing list