mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Shared/Cfg: Fix missing JoinBlockPredecessor.
This commit is contained in:
@@ -1020,6 +1020,12 @@ module MakeWithSplitting<
|
|||||||
not jbp instanceof BasicBlocks::EntryBasicBlock and
|
not jbp instanceof BasicBlocks::EntryBasicBlock and
|
||||||
id = idOfAstNode(jbp.getFirstNode().(AstCfgNode).getAstNode()) and
|
id = idOfAstNode(jbp.getFirstNode().(AstCfgNode).getAstNode()) and
|
||||||
kind = 1
|
kind = 1
|
||||||
|
or
|
||||||
|
exists(AnnotatedExitNode aen |
|
||||||
|
jbp.getFirstNode() = aen and
|
||||||
|
id = idOfCfgScope(aen.getScope()) and
|
||||||
|
if aen.isNormal() then kind = 2 else kind = 3
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
string getSplitString(BasicBlocks::JoinPredecessorBasicBlock jbp) {
|
string getSplitString(BasicBlocks::JoinPredecessorBasicBlock jbp) {
|
||||||
|
|||||||
Reference in New Issue
Block a user