Shared/Cfg: Fix missing JoinBlockPredecessor.

This commit is contained in:
Anders Schack-Mulligen
2025-09-17 16:37:23 +02:00
parent 4f8166a661
commit d5a238768c

View File

@@ -1020,6 +1020,12 @@ module MakeWithSplitting<
not jbp instanceof BasicBlocks::EntryBasicBlock and
id = idOfAstNode(jbp.getFirstNode().(AstCfgNode).getAstNode()) and
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) {