mirror of
https://github.com/github/codeql.git
synced 2026-02-20 00:43:44 +01:00
Make CFG for AssignExpr visit left operand before right
This commit is contained in:
@@ -353,9 +353,9 @@ module Trees {
|
||||
|
||||
private class AssignmentTree extends StandardPostOrderTree, AssignExpr {
|
||||
final override ControlFlowTree getChildNode(int i) {
|
||||
result = this.getRightOperand() and i = 0
|
||||
result = this.getLeftOperand() and i = 0
|
||||
or
|
||||
result = this.getLeftOperand() and i = 1
|
||||
result = this.getRightOperand() and i = 1
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user