Merge pull request #74 from github/hvitved/cfg/fix-join-order

CFG: Fix bad join-order
This commit is contained in:
Tom Hvitved
2020-12-17 16:58:23 +01:00
committed by GitHub

View File

@@ -169,7 +169,7 @@ private AstNode parent(AstNode n) {
}
/** Gets the CFG scope of node `n`. */
CfgScope getScope(AstNode n) { result = parent+(n) }
CfgScope getScope(AstNode n) { result = unique(CfgScope scope | scope = parent+(n)) }
abstract private class ControlFlowTree extends AstNode {
/**