summaryrefslogtreecommitdiff
path: root/scope.c
diff options
context:
space:
mode:
Diffstat (limited to 'scope.c')
-rw-r--r--scope.c2
1 files changed, 2 insertions, 0 deletions
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;