Skip to content

Commit e6f632b

Browse files
author
Dave Bartolomeo
authored
Merge pull request #2228 from jbj/DefaultTaintTracking-getASTVariable
C++: Use getASTVariable in DefaultTaintTracking
2 parents 2f63ab0 + 1e6c983 commit e6f632b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/ql/src/semmle/code/cpp/ir/dataflow/DefaultTaintTracking.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ private class DefaultTaintTrackingCfg extends DataFlow::Configuration {
3737
}
3838

3939
private predicate accessesVariable(CopyInstruction copy, Variable var) {
40-
exists(VariableAddressInstruction va | va.getVariable().getAST() = var |
40+
exists(VariableAddressInstruction va | va.getASTVariable() = var |
4141
copy.(StoreInstruction).getDestinationAddress() = va
4242
or
4343
copy.(LoadInstruction).getSourceAddress() = va

0 commit comments

Comments
 (0)