mirror of
https://github.com/github/codeql.git
synced 2026-04-28 18:25:24 +02:00
Add ConditionalExpr.getBranchExpr(boolean)
This commit is contained in:
@@ -36,7 +36,7 @@ predicate usefulUpcast(CastExpr e) {
|
||||
)
|
||||
or
|
||||
// Upcasts that are performed on an operand of a ternary expression.
|
||||
exists(ConditionalExpr ce | e = ce.getTrueExpr() or e = ce.getFalseExpr())
|
||||
exists(ConditionalExpr ce | e = ce.getBranchExpr(_))
|
||||
or
|
||||
// Upcasts to raw types.
|
||||
e.getType() instanceof RawType
|
||||
|
||||
Reference in New Issue
Block a user