diff options
| author | gingerBill <bill@gingerbill.org> | 2019-04-19 11:39:01 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2019-04-19 11:39:01 +0100 |
| commit | 2780f82f303561535031cb696394498bde4cdbd4 (patch) | |
| tree | 195f378c743991821c8ccbe43d96776f440e9ba2 /src/checker.cpp | |
| parent | 133f88406f77db28ec041399b00770046469934d (diff) | |
Fix `is_operand_value` to support more addressing modes
Diffstat (limited to 'src/checker.cpp')
| -rw-r--r-- | src/checker.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/checker.cpp b/src/checker.cpp index f1e2bb45d..1f5835bd1 100644 --- a/src/checker.cpp +++ b/src/checker.cpp @@ -7,10 +7,12 @@ void check_expr(CheckerContext *c, Operand *operand, Ast *expression); bool is_operand_value(Operand o) { switch (o.mode) { case Addressing_Value: - case Addressing_Variable: case Addressing_Immutable: + case Addressing_Context: + case Addressing_Variable: case Addressing_Constant: case Addressing_MapIndex: + case Addressing_OptionalOk: return true; } return false; |