aboutsummaryrefslogtreecommitdiff
path: root/src/codegen.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2019-06-10 23:54:28 -0400
committerAndrew Kelley <andrew@ziglang.org>2019-06-10 23:54:28 -0400
commitd504318f2e0f3054c772abbd34f938f2cefa6ccc (patch)
tree444f83aa8bb12f3d635b32f0c0031ba4c17fcf5d /src/codegen.cpp
parentf6d4e2565e7c0eea7e50e50dd808246d65d9f200 (diff)
downloadzig-d504318f2e0f3054c772abbd34f938f2cefa6ccc.tar.gz
zig-d504318f2e0f3054c772abbd34f938f2cefa6ccc.zip
remove the final legacy stack allocation
Diffstat (limited to 'src/codegen.cpp')
-rw-r--r--src/codegen.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/codegen.cpp b/src/codegen.cpp
index 5e3938a4ae..a75ef29169 100644
--- a/src/codegen.cpp
+++ b/src/codegen.cpp
@@ -6826,20 +6826,6 @@ static void do_code_gen(CodeGen *g) {
get_ptr_align(g, ptr_type));
}
- for (size_t alloca_i = 0; alloca_i < fn_table_entry->alloca_list.length; alloca_i += 1) {
- IrInstruction *instruction = fn_table_entry->alloca_list.at(alloca_i);
- LLVMValueRef *slot;
- ZigType *slot_type = instruction->value.type;
- uint32_t alignment_bytes = 0;
- if (instruction->id == IrInstructionIdCast) {
- IrInstructionCast *cast_instruction = (IrInstructionCast *)instruction;
- slot = &cast_instruction->tmp_ptr;
- } else {
- zig_unreachable();
- }
- *slot = build_alloca(g, slot_type, "", alignment_bytes);
- }
-
ZigType *import = get_scope_import(&fn_table_entry->fndef_scope->base);
unsigned gen_i_init = want_first_arg_sret(g, fn_type_id) ? 1 : 0;