forked from OSchip/llvm-project
Don't overguard to adding a control-flow piece when "alwaysAdd" is true.
llvm-svn: 68476
This commit is contained in:
parent
54d569c51d
commit
d7c1aaa6c5
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue