[JIT] Assert that other is constant in set_from.

This commit is contained in:
gibbed 2018-11-23 10:46:27 -06:00
parent 996093e499
commit b121f45c7f
1 changed files with 1 additions and 0 deletions

View File

@ -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;