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 b39a932 commit 21f9e67Copy full SHA for 21f9e67
cpp/ql/lib/semmle/code/cpp/controlflow/IRGuards.qll
@@ -256,9 +256,8 @@ private class GuardConditionFromNotExpr extends GuardConditionImpl {
256
// comparison against 0 so it's not included as a normal
257
// `IRGuardCondition`. So to align with user expectations we make that `x`
258
// a `GuardCondition`.
259
- exists(NotExpr notExpr, Type t |
+ exists(NotExpr notExpr |
260
this = notExpr.getOperand() and
261
- t = this.getUnspecifiedType() and
262
ir.getUnconvertedResultExpression() = notExpr
263
)
264
}
0 commit comments