diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2016-10-23 00:21:29 -0400 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2016-10-23 00:21:29 -0400 |
| commit | d7a2b05a813a7badf0606726c9a4b1423befd437 (patch) | |
| tree | b4f1f0caa664d10b26a0ca4be31d1aeb125c802b /src/analyze.cpp | |
| parent | a9a6f77a1f0a6e173d85fee42aec0a8d5e22a64d (diff) | |
| download | zig-d7a2b05a813a7badf0606726c9a4b1423befd437.tar.gz zig-d7a2b05a813a7badf0606726c9a4b1423befd437.zip | |
IR: introduce concept of lvalues
Diffstat (limited to 'src/analyze.cpp')
| -rw-r--r-- | src/analyze.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/analyze.cpp b/src/analyze.cpp index 7b0743a2d5..f8c3f4c35e 100644 --- a/src/analyze.cpp +++ b/src/analyze.cpp @@ -3615,6 +3615,9 @@ 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; |
