From 7bc67b95161a34f8eca635d4000d9602508a9243 Mon Sep 17 00:00:00 2001 From: Tom Harley Date: Mon, 23 Dec 2019 01:32:39 +0000 Subject: checkpoint --- scope.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'scope.c') diff --git a/scope.c b/scope.c index 87ef76e..9b65a38 100644 --- a/scope.c +++ b/scope.c @@ -45,6 +45,8 @@ void scope_add_entry(scope sc, char *id, LLVMValueRef val, LLVMTypeRef type) { scope_entry *new_entry = malloc(sizeof (*new_entry)); if (!new_entry) error(GENERAL_ERROR, "cannot malloc?"); + debug("adding entry for %s\n", id); + new_entry->id = strdup(id); new_entry->value = val; new_entry->type = type; -- cgit v1.2.1