Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 56a132f commit 796fcfeCopy full SHA for 796fcfe
1 file changed
cpp/ql/lib/semmle/code/cpp/ir/implementation/raw/internal/TranslatedElement.qll
@@ -259,9 +259,9 @@ private predicate usedAsCondition(Expr expr) {
259
260
private predicate isInConditionalEvaluation(Expr e) {
261
exists(ConditionalExpr cond |
262
- e = cond.getThen() and not cond.isTwoOperand()
+ e = cond.getThen().getFullyConverted() and not cond.isTwoOperand()
263
or
264
- e = cond.getElse()
+ e = cond.getElse().getFullyConverted()
265
)
266
267
isInConditionalEvaluation(getRealParent(e))
0 commit comments