Skip to content

Commit d030f0b

Browse files
committed
C++: Add a placeholder for 'getOpcode'.
1 parent 33364a8 commit d030f0b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1276,6 +1276,9 @@ class TranslatedUnaryExpr extends TranslatedSingleInstructionExpr {
12761276
expr instanceof UnaryPlusExpr and result instanceof Opcode::CopyValue
12771277
or
12781278
expr instanceof UnaryMinusExpr and result instanceof Opcode::Negate
1279+
or
1280+
// TODO: Use a new opcode to represent "awaiting the value"
1281+
expr instanceof CoAwaitExpr and result instanceof Opcode::CopyValue
12791282
}
12801283

12811284
private TranslatedExpr getOperand() {

0 commit comments

Comments
 (0)