[cfe-commits] r49887 - /cfe/trunk/lib/Analysis/BugReporter.cpp
Ted Kremenek
kremenek at apple.com
Thu Apr 17 19:24:57 PDT 2008
Author: kremenek
Date: Thu Apr 17 21:24:50 2008
New Revision: 49887
URL: http://llvm.org/viewvc/llvm-project?rev=49887&view=rev
Log:
Added null check.
Modified:
cfe/trunk/lib/Analysis/BugReporter.cpp
Modified: cfe/trunk/lib/Analysis/BugReporter.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/BugReporter.cpp?rev=49887&r1=49886&r2=49887&view=diff
==============================================================================
--- cfe/trunk/lib/Analysis/BugReporter.cpp (original)
+++ cfe/trunk/lib/Analysis/BugReporter.cpp Thu Apr 17 21:24:50 2008
@@ -359,6 +359,9 @@
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.
More information about the cfe-commits
mailing list