[cfe-commits] r140725 - /cfe/trunk/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp
Ted Kremenek
kremenek at apple.com
Wed Sep 28 14:20:00 PDT 2011
Author: kremenek
Date: Wed Sep 28 16:20:00 2011
New Revision: 140725
URL: http://llvm.org/viewvc/llvm-project?rev=140725&view=rev
Log:
Check for empty predecessors for walking them.
Modified:
cfe/trunk/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp
Modified: cfe/trunk/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp?rev=140725&r1=140724&r2=140725&view=diff
==============================================================================
--- cfe/trunk/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp (original)
+++ cfe/trunk/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp Wed Sep 28 16:20:00 2011
@@ -315,7 +315,7 @@
if (ps->getStmt() == S)
break;
}
- N = *N->pred_begin();
+ N = N->pred_empty() ? 0 : *N->pred_begin();
}
if (!N)
More information about the cfe-commits
mailing list