From 329d2cc85919acd730e04429bcac112736cd4356 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Fri, 18 Apr 2008 02:24:50 +0000 Subject: [PATCH] Added null check. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49887 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Analysis/BugReporter.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/Analysis/BugReporter.cpp b/lib/Analysis/BugReporter.cpp index 294eb5faac..743f44bb32 100644 --- a/lib/Analysis/BugReporter.cpp +++ b/lib/Analysis/BugReporter.cpp @@ -359,6 +359,9 @@ void BugReporter::GeneratePathDiagnostic(PathDiagnostic& PD, bool BugReporter::IsCached(ExplodedNode* N) { + if (!N) + return false; + // HACK: Cache the location of the error. Don't emit the same // warning for the same error type that occurs at the same program // location but along a different path. -- 2.40.0