forked from OSchip/llvm-project
PathDiagnostic generation: experiment with avoiding generation of control-flow
pieces between block entrance and block end unless necessary. llvm-svn: 68483
This commit is contained in:
parent
4fab57ddea
commit
86d52c4c02
|
@ -989,10 +989,10 @@ static void GenerateExtensivePathDiagnostic(PathDiagnostic& PD,
|
||||||
|
|
||||||
// Only handle blocks with more than 1 statement here, as the blocks
|
// Only handle blocks with more than 1 statement here, as the blocks
|
||||||
// with one statement are handled at BlockEntrances.
|
// with one statement are handled at BlockEntrances.
|
||||||
if (Blk.size() > 1) {
|
// if (Blk.size() > 1) {
|
||||||
const Stmt *S = *Blk.rbegin();
|
// const Stmt *S = *Blk.rbegin();
|
||||||
EB.addEdge(S);
|
// EB.addEdge(S);
|
||||||
}
|
// }
|
||||||
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue