Don't overguard to adding a control-flow piece when "alwaysAdd" is true.

llvm-svn: 68476
This commit is contained in:
Ted Kremenek 2009-04-07 00:11:40 +00:00
parent 54d569c51d
commit d7c1aaa6c5
1 changed files with 2 additions and 2 deletions

View File

@ -914,7 +914,7 @@ void EdgeBuilder::addEdge(PathDiagnosticLocation NewLoc, bool alwaysAdd) {
// Is the top location context the same as the one for the new location?
if (TopContextLoc == CLoc) {
if (alwaysAdd && NewLoc.asLocation() != CLoc.asLocation())
if (alwaysAdd)
rawAddEdge(NewLoc);
return;
@ -949,7 +949,7 @@ void EdgeBuilder::addContext(const Stmt *S) {
return;
if (containsLocation(TopContextLoc, L)) {
// if (const Stmt *S = L.asStmt())
// / if (const Stmt *S = L.asStmt())
// if (isa<Expr>(S))
// if (const Stmt *P = PDB.getParent(S))
// addContext(PDB.getEnclosingStmtLocation(P).asStmt());