From b121f45c7f4bb3b3366703ab09b460370cfc43e5 Mon Sep 17 00:00:00 2001 From: gibbed Date: Fri, 23 Nov 2018 10:46:27 -0600 Subject: [PATCH] [JIT] Assert that other is constant in set_from. --- src/xenia/cpu/hir/value.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/xenia/cpu/hir/value.h b/src/xenia/cpu/hir/value.h index ff41edf3b..dcc95ca8c 100644 --- a/src/xenia/cpu/hir/value.h +++ b/src/xenia/cpu/hir/value.h @@ -170,6 +170,7 @@ class Value { constant.v128 = value; } void set_from(const Value* other) { + assert_true(other->IsConstant()); type = other->type; flags = other->flags; constant.v128 = other->constant.v128;