mirror of
https://github.com/github/codeql.git
synced 2025-12-20 10:46:30 +01:00
C#: Fix expanded assignment lookup in finally blocks for CFG
This commit is contained in:
@@ -1302,7 +1302,7 @@ module Statements {
|
||||
/** Gets a child of `cfe` that is in CFG scope `scope`. */
|
||||
pragma[noinline]
|
||||
private ControlFlowElement getAChildInScope(ControlFlowElement cfe, Callable scope) {
|
||||
result = cfe.getAChild() and
|
||||
result = [cfe.getAChild(), cfe.(AssignOperation).getExpandedAssignment()] and
|
||||
scope = result.getEnclosingCallable()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user