Fix helper function GetNextStmt() to look for the first statement that has a

valid SourceLocation.

llvm-svn: 77280
This commit is contained in:
Ted Kremenek 2009-07-28 00:07:15 +00:00
parent 82a9e445b7
commit 4c9f161fd5
1 changed files with 5 additions and 0 deletions

View File

@ -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;
}