forked from OSchip/llvm-project
Fix helper function GetNextStmt() to look for the first statement that has a
valid SourceLocation. llvm-svn: 77280
This commit is contained in:
parent
82a9e445b7
commit
4c9f161fd5
|
@ -84,6 +84,11 @@ static const Stmt* GetNextStmt(const ExplodedNode<GRState>* N) {
|
|||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
// Some expressions don't have locations.
|
||||
if (S->getLocStart().isInvalid())
|
||||
continue;
|
||||
|
||||
return S;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue