summaryrefslogtreecommitdiff
path: root/instance_table.c
diff options
context:
space:
mode:
Diffstat (limited to 'instance_table.c')
-rw-r--r--instance_table.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/instance_table.c b/instance_table.c
index 0f8948a..58dc635 100644
--- a/instance_table.c
+++ b/instance_table.c
@@ -283,6 +283,7 @@ static bool val_eq(Value u, Value v, Type *t) {
/*
if already_exists is not NULL, this will create the instance if it does not exist,
and set already_exists accordingly
+ make sure v's data remains valid
*/
/* OPTIM: store instances in a block array (remember that the pointers need to stay valid!) */
static Instance *instance_table_adda(Allocator *a, HashTable *h, Value v, Type *t,