Skip to content

Commit 21f9e67

Browse files
committed
C++: Remove an unnecessary conjunct.
1 parent b39a932 commit 21f9e67

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cpp/ql/lib/semmle/code/cpp/controlflow/IRGuards.qll

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,9 +256,8 @@ private class GuardConditionFromNotExpr extends GuardConditionImpl {
256256
// comparison against 0 so it's not included as a normal
257257
// `IRGuardCondition`. So to align with user expectations we make that `x`
258258
// a `GuardCondition`.
259-
exists(NotExpr notExpr, Type t |
259+
exists(NotExpr notExpr |
260260
this = notExpr.getOperand() and
261-
t = this.getUnspecifiedType() and
262261
ir.getUnconvertedResultExpression() = notExpr
263262
)
264263
}

0 commit comments

Comments
 (0)