C++: Mark 'CoYieldExpr' as a unary expression in IR construction.

This commit is contained in:
Mathias Vorreiter Pedersen
2024-04-11 15:34:29 +01:00
parent 2a914770ea
commit 65b69fe353

View File

@@ -1236,7 +1236,8 @@ class TranslatedUnaryExpr extends TranslatedSingleInstructionExpr {
expr instanceof ComplementExpr or
expr instanceof UnaryPlusExpr or
expr instanceof UnaryMinusExpr or
expr instanceof CoAwaitExpr
expr instanceof CoAwaitExpr or
expr instanceof CoYieldExpr
}
final override Instruction getFirstInstruction(EdgeKind kind) {