diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-04-18 02:24:50 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-04-18 02:24:50 +0000 |
commit | 329d2cc85919acd730e04429bcac112736cd4356 (patch) | |
tree | 21627dd9576fe858f62657b2259a546ce91b78c0 /lib/Analysis/BugReporter.cpp | |
parent | f5016260522e449e9bacdb0e5a87ad3932d9fbd4 (diff) |
Added null check.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49887 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/BugReporter.cpp')
-rw-r--r-- | lib/Analysis/BugReporter.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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<ValueState>* 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. |