Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 796fcfe

Browse files
committed
C++: Handle conversions in 'isInConditionalEvaluation'.
1 parent 56a132f commit 796fcfe

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cpp/ql/lib/semmle/code/cpp/ir/implementation/raw/internal/TranslatedElement.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,9 +259,9 @@ private predicate usedAsCondition(Expr expr) {
259259

260260
private predicate isInConditionalEvaluation(Expr e) {
261261
exists(ConditionalExpr cond |
262-
e = cond.getThen() and not cond.isTwoOperand()
262+
e = cond.getThen().getFullyConverted() and not cond.isTwoOperand()
263263
or
264-
e = cond.getElse()
264+
e = cond.getElse().getFullyConverted()
265265
)
266266
or
267267
isInConditionalEvaluation(getRealParent(e))

0 commit comments

Comments
 (0)