[clang] [clang][analyzer] Fix a nullptr dereference when -ftime-trace is used (Reland) (PR #139980)

Balazs Benics via cfe-commits cfe-commits at lists.llvm.org
Thu May 15 06:51:42 PDT 2025


================
@@ -100,41 +100,7 @@ class SymbolConjured : public SymbolData {
   ConstCFGElementRef getCFGElementRef() const { return Elem; }
 
   // It might return null.
-  const Stmt *getStmt() const {
----------------
steakhal wrote:

It must have been painful to iterate on this code :D
I agree, it should be in a cpp file.

https://github.com/llvm/llvm-project/pull/139980


More information about the cfe-commits mailing list