diff options
Diffstat (limited to 'clang/lib/Analysis')
| -rw-r--r-- | clang/lib/Analysis/BugReporter.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/Analysis/BugReporter.cpp b/clang/lib/Analysis/BugReporter.cpp index 294eb5faac3..743f44bb326 100644 --- a/clang/lib/Analysis/BugReporter.cpp +++ b/clang/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. |

