C++: Use getASTVariable in DefaultTaintTracking

This library is not yet used in a query or test, so it broke silently
when `VariableAddressInstruction.getVariable` was removed.
This commit is contained in:
Jonas Jensen
2019-10-30 13:42:17 +01:00
parent ecd4c08cb4
commit 1e6c983d62

View File

@@ -37,7 +37,7 @@ private class DefaultTaintTrackingCfg extends DataFlow::Configuration {
}
private predicate accessesVariable(CopyInstruction copy, Variable var) {
exists(VariableAddressInstruction va | va.getVariable().getAST() = var |
exists(VariableAddressInstruction va | va.getASTVariable() = var |
copy.(StoreInstruction).getDestinationAddress() = va
or
copy.(LoadInstruction).getSourceAddress() = va