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 4b44afe commit 66381e8Copy full SHA for 66381e8
1 file changed
cpp/ql/src/semmle/code/cpp/ir/implementation/raw/internal/TranslatedExpr.qll
@@ -1767,6 +1767,11 @@ abstract class TranslatedConditionalExpr extends TranslatedNonConstantExpr {
1767
override ConditionalExpr expr;
1768
1769
override predicate hasInstruction(Opcode opcode, InstructionTag tag, CppType resultType) {
1770
+ // Note that the ternary flavor needs no explicit `ConditionalBranch` instruction here, because
1771
+ // the condition is a `TranslatedCondition`, which will simply connect the successor edges of
1772
+ // the condition directly to the appropriate then/else block via
1773
+ // `getChild[True|False]Successor()`.
1774
+ // The binary flavor will override this predicate to add the `ConditionalBranch`.
1775
not resultIsVoid() and
1776
(
1777
0 commit comments