Skip to content

Commit 4c4d241

Browse files
committed
C++: Mark 'CoAwaitExpr' as a unary expression in IR construction.
1 parent 161f586 commit 4c4d241

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
@@ -1235,7 +1235,8 @@ class TranslatedUnaryExpr extends TranslatedSingleInstructionExpr {
12351235
expr instanceof NotExpr or
12361236
expr instanceof ComplementExpr or
12371237
expr instanceof UnaryPlusExpr or
1238-
expr instanceof UnaryMinusExpr
1238+
expr instanceof UnaryMinusExpr or
1239+
expr instanceof CoAwaitExpr
12391240
}
12401241

12411242
final override Instruction getFirstInstruction(EdgeKind kind) {

0 commit comments

Comments
 (0)