Skip to content

Commit 99a9d7f

Browse files
committed
C++: Simplify
1 parent 6804018 commit 99a9d7f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -337,10 +337,7 @@ private Element adjustedSink(DataFlow::Node sink) {
337337
result.(NotExpr).getOperand() = sink.asExpr()
338338
or
339339
// Taint `e--` and `e++` when `e` is tainted.
340-
exists(PostfixCrementOperation crement |
341-
crement.getAnOperand() = sink.asExpr() and
342-
result = crement
343-
)
340+
result.(PostfixCrementOperation).getAnOperand() = sink.asExpr()
344341
}
345342

346343
predicate tainted(Expr source, Element tainted) {

0 commit comments

Comments
 (0)