History

Add type_descriptor::is_equal() function. - Replace pointer and use function throughout VM Complete implementation of vm_array_t::copy_from() which supports the slicela instruction.

arr committed 9 years ago

Commit 7838bae1 parent 5ef656f5 files · +30 −12Browse files

Showing the changes to src/vm/execution_table.cpp (1 of 5 files). Show all

Unified · Split

src/vm/execution_table.cpp+1−1
@@ -1403,7 +1403,7 @@ namespace · 1402 unmodified lines
1403 if (s == nullptr)1403 if (s == nullptr)
1404 return;1404 return;
1405 1405
1406 if (d == nullptr || s->alloc_type != d->alloc_type)1406 if (d == nullptr || !s->alloc_type->is_equal(d->alloc_type.get()))
1407 throw type_violation{};1407 throw type_violation{};
1408 }1408 }
1409 1409