We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a319fc0 commit d5d56cdCopy full SHA for d5d56cd
go/ql/src/RedundantCode/DeadStoreOfField.ql
@@ -36,7 +36,7 @@ predicate escapes(DataFlow::Node nd) {
36
exists(SendStmt s | nd.asExpr() = s.getValue())
37
or
38
// if `nd` is passed to a function, then it escapes
39
- nd instanceof DataFlow::ArgumentNode
+ nd = any(DataFlow::CallNode c).getASyntacticArgument()
40
41
// if `nd` has its address taken, then it escapes
42
exists(AddressExpr ae | nd.asExpr() = ae.getOperand())
0 commit comments