aboutsummaryrefslogtreecommitdiff
path: root/src/analyze.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2016-10-20 01:13:39 -0400
committerAndrew Kelley <superjoe30@gmail.com>2016-10-20 01:13:39 -0400
commita9a6f77a1f0a6e173d85fee42aec0a8d5e22a64d (patch)
treeb296c79800a216da4a9caa1c335be78d5f2ebd70 /src/analyze.cpp
parent682511d1b22d50a77ff967d1d6415a68560cd49a (diff)
downloadzig-a9a6f77a1f0a6e173d85fee42aec0a8d5e22a64d.tar.gz
zig-a9a6f77a1f0a6e173d85fee42aec0a8d5e22a64d.zip
add variable declaration initialization IR
Diffstat (limited to 'src/analyze.cpp')
-rw-r--r--src/analyze.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/analyze.cpp b/src/analyze.cpp
index f8c3f4c35e..7b0743a2d5 100644
--- a/src/analyze.cpp
+++ b/src/analyze.cpp
@@ -3615,9 +3615,6 @@ static VariableTableEntry *add_local_var_shadowable(CodeGen *g, AstNode *source_
// TODO replace _anon with @anon and make sure all tests still pass
buf_init_from_str(&variable_entry->name, "_anon");
}
- if (context->fn_entry) {
- context->fn_entry->variable_list.append(variable_entry);
- }
variable_entry->is_const = is_const;
variable_entry->decl_node = source_node;