Browse Source

Correct `is_operand_value` for Swizzle addressing modes

gingerBill 4 năm trước cách đây
mục cha
commit
8e62f9c83c
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      src/checker.cpp

+ 2 - 0
src/checker.cpp

@@ -14,6 +14,8 @@ bool is_operand_value(Operand o) {
 	case Addressing_MapIndex:
 	case Addressing_OptionalOk:
 	case Addressing_SoaVariable:
+	case Addressing_SwizzleValue:
+	case Addressing_SwizzleVariable:
 		return true;
 	}
 	return false;