aboutsummaryrefslogtreecommitdiff
path: root/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp
diff options
context:
space:
mode:
authorAnna Zaks <ganna@apple.com>2011-10-01 06:35:19 +0000
committerAnna Zaks <ganna@apple.com>2011-10-01 06:35:19 +0000
commitb459cf34c4df1a1317a9bda1e1e2cc32364e62cf (patch)
tree0ed4cc7d61a6099187badd28b6e399032cec3c56 /lib/StaticAnalyzer/Core/BugReporterVisitors.cpp
parente82247a71a1a76e78f3b979b64d5f6412ab40266 (diff)
Address PR10616. The crash has already been fixed by Ted in r140725, so just refactor to use existing API + test case.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140932 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/StaticAnalyzer/Core/BugReporterVisitors.cpp')
-rw-r--r--lib/StaticAnalyzer/Core/BugReporterVisitors.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp b/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp
index 3afbd87213..da08cbd88e 100644
--- a/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp
+++ b/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp
@@ -315,7 +315,7 @@ bugreporter::getTrackNullOrUndefValueVisitor(const ExplodedNode *N,
if (ps->getStmt() == S)
break;
}
- N = N->pred_empty() ? 0 : *N->pred_begin();
+ N = N->getFirstPred();
}
if (!N)