assert: stringmap_merge's arguments should use the same memory arena
This commit is contained in:
parent
5ee7982596
commit
2b31fb0f33
1 changed files with 2 additions and 0 deletions
|
|
@ -84,6 +84,8 @@ static void *combine_entries(HHashSet *workset, void *dst, const void *src)
|
||||||
// note: reuses parts of src to build dst!
|
// note: reuses parts of src to build dst!
|
||||||
static void stringmap_merge(HHashSet *workset, HStringMap *dst, HStringMap *src)
|
static void stringmap_merge(HHashSet *workset, HStringMap *dst, HStringMap *src)
|
||||||
{
|
{
|
||||||
|
assert(src->arena == dst->arena);
|
||||||
|
|
||||||
if(src->epsilon_branch) {
|
if(src->epsilon_branch) {
|
||||||
if(dst->epsilon_branch)
|
if(dst->epsilon_branch)
|
||||||
dst->epsilon_branch =
|
dst->epsilon_branch =
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue