mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Guards: Include ConditionalExpr in exprHasValue.
This commit is contained in:
@@ -773,6 +773,10 @@ module Make<
|
||||
or
|
||||
exprHasValue(e.(IdExpr).getEqualChildExpr(), v)
|
||||
or
|
||||
exists(ConditionalExpr cond | cond = e |
|
||||
exprHasValue(cond.getThen(), v) and exprHasValue(cond.getElse(), v)
|
||||
)
|
||||
or
|
||||
exists(SsaDefinition def, Guard g, GuardValue gv |
|
||||
e = def.getARead() and
|
||||
g.directlyValueControls(e.getBasicBlock(), gv) and
|
||||
|
||||
Reference in New Issue
Block a user