File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
powershell/ql/lib/semmle/code/powershell/dataflow Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,8 @@ module Ssa {
9
9
private import semmle.code.powershell.Cfg
10
10
private import powershell
11
11
private import internal.SsaImpl as SsaImpl
12
- private import CfgNodes:: ExprNodes
12
+ private import CfgNodes
13
+ private import ExprNodes
13
14
14
15
/** A static single assignment (SSA) definition. */
15
16
class Definition extends SsaImpl:: Definition {
@@ -23,7 +24,7 @@ module Ssa {
23
24
}
24
25
25
26
/** Gets a control-flow node that reads the value of this SSA definition. */
26
- final VarReadAccessCfgNode getARead ( ) { result = SsaImpl:: getARead ( this ) }
27
+ final AstCfgNode getARead ( ) { result = SsaImpl:: getARead ( this ) }
27
28
28
29
/**
29
30
* Gets a first control-flow node that reads the value of this SSA definition.
Original file line number Diff line number Diff line change @@ -209,10 +209,10 @@ private module Cached {
209
209
}
210
210
211
211
cached
212
- VarReadAccessCfgNode getARead ( Definition def ) {
212
+ AstCfgNode getARead ( Definition def ) {
213
213
exists ( SsaInput:: SourceVariable v , Cfg:: BasicBlock bb , int i |
214
214
Impl:: ssaDefReachesRead ( v , def , bb , i ) and
215
- variableReadActual ( bb , i , v ) and
215
+ SsaInput :: variableRead ( bb , i , v , true ) and
216
216
result = bb .getNode ( i )
217
217
)
218
218
}
You can’t perform that action at this time.
0 commit comments