mirror of
https://github.com/intel/llvm.git
synced 2026-01-26 12:26:52 +08:00
Check for empty predecessors for walking them.
llvm-svn: 140725
This commit is contained in:
@@ -315,7 +315,7 @@ bugreporter::getTrackNullOrUndefValueVisitor(const ExplodedNode *N,
|
||||
if (ps->getStmt() == S)
|
||||
break;
|
||||
}
|
||||
N = *N->pred_begin();
|
||||
N = N->pred_empty() ? 0 : *N->pred_begin();
|
||||
}
|
||||
|
||||
if (!N)
|
||||
|
||||
Reference in New Issue
Block a user