diff options
| author | Alexandros Naskos <alex_naskos@hotmail.com> | 2020-03-02 00:54:57 +0200 |
|---|---|---|
| committer | Alexandros Naskos <alex_naskos@hotmail.com> | 2020-03-02 00:54:57 +0200 |
| commit | 78e4daaa03613da5d1398f7c3bcbfda24086b051 (patch) | |
| tree | f4bc54197b308c824b23402545ac114b79d13818 /src/ir.cpp | |
| parent | 11848fcb5fcb34b778dc19a8c7c2defd8da48f70 (diff) | |
| download | zig-78e4daaa03613da5d1398f7c3bcbfda24086b051.tar.gz zig-78e4daaa03613da5d1398f7c3bcbfda24086b051.zip | |
Removed unused variable
Diffstat (limited to 'src/ir.cpp')
| -rw-r--r-- | src/ir.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/ir.cpp b/src/ir.cpp index f0185608a7..977c4b65eb 100644 --- a/src/ir.cpp +++ b/src/ir.cpp @@ -16988,7 +16988,6 @@ static IrInstGen *ir_analyze_tuple_cat(IrAnalyze *ira, IrInst* source_instr, return ira->codegen->invalid_inst_gen; ZigList<IrInstGen *> const_ptrs = {}; - IrInstGen *first_non_const_instruction = nullptr; for (uint32_t i = 0; i < new_field_count; i += 1) { TypeStructField *dst_field = new_type->data.structure.fields[i]; IrInstGen *src_struct_op; @@ -17010,8 +17009,6 @@ static IrInstGen *ir_analyze_tuple_cat(IrAnalyze *ira, IrInst* source_instr, return ira->codegen->invalid_inst_gen; if (instr_is_comptime(field_value)) { const_ptrs.append(dest_ptr); - } else { - first_non_const_instruction = field_value; } IrInstGen *store_ptr_inst = ir_analyze_store_ptr(ira, source_instr, dest_ptr, field_value, true); |
