mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-07 16:18:52 +00:00
Fix is_operand_value to support more addressing modes
This commit is contained in:
+3
-1
@@ -7,10 +7,12 @@ void check_expr(CheckerContext *c, Operand *operand, Ast *expression);
|
|||||||
bool is_operand_value(Operand o) {
|
bool is_operand_value(Operand o) {
|
||||||
switch (o.mode) {
|
switch (o.mode) {
|
||||||
case Addressing_Value:
|
case Addressing_Value:
|
||||||
case Addressing_Variable:
|
|
||||||
case Addressing_Immutable:
|
case Addressing_Immutable:
|
||||||
|
case Addressing_Context:
|
||||||
|
case Addressing_Variable:
|
||||||
case Addressing_Constant:
|
case Addressing_Constant:
|
||||||
case Addressing_MapIndex:
|
case Addressing_MapIndex:
|
||||||
|
case Addressing_OptionalOk:
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user