mirror of
https://github.com/github/codeql.git
synced 2025-12-22 19:56:32 +01:00
Add ConditionalExpr.getBranchExpr(boolean)
This commit is contained in:
@@ -148,9 +148,7 @@ predicate upcastToWiderType(Expr e) {
|
||||
or
|
||||
exists(Parameter p | p.getAnArgument() = e and t2 = p.getType())
|
||||
or
|
||||
exists(ConditionalExpr cond | cond.getTrueExpr() = e or cond.getFalseExpr() = e |
|
||||
t2 = cond.getType()
|
||||
)
|
||||
exists(ConditionalExpr cond | cond.getBranchExpr(_) | t2 = cond.getType())
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user