Skip to content

Commit 65b69fe

Browse files
committed
C++: Mark 'CoYieldExpr' as a unary expression in IR construction.
1 parent 2a91477 commit 65b69fe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1236,7 +1236,8 @@ class TranslatedUnaryExpr extends TranslatedSingleInstructionExpr {
12361236
expr instanceof ComplementExpr or
12371237
expr instanceof UnaryPlusExpr or
12381238
expr instanceof UnaryMinusExpr or
1239-
expr instanceof CoAwaitExpr
1239+
expr instanceof CoAwaitExpr or
1240+
expr instanceof CoYieldExpr
12401241
}
12411242

12421243
final override Instruction getFirstInstruction(EdgeKind kind) {

0 commit comments

Comments
 (0)