Skip to content

Commit 90c1fc3

Browse files
committed
Inline predicate only used once
1 parent 3275735 commit 90c1fc3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

go/ql/lib/semmle/go/dataflow/internal/DataFlowNodes.qll

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -844,13 +844,11 @@ module Public {
844844
insn = getAWrittenInsn()
845845
}
846846

847-
predicate hasPostUpdateNode(Node preupd) { insnHasPostUpdateNode(preupd.asInstruction()) }
848-
849847
private class DefaultPostUpdateNode extends PostUpdateNode {
850848
Node preupd;
851849

852850
DefaultPostUpdateNode() {
853-
hasPostUpdateNode(preupd) and
851+
insnHasPostUpdateNode(preupd.asInstruction()) and
854852
(
855853
preupd = this.(SsaNode).getAUse()
856854
or

0 commit comments

Comments
 (0)