authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-03-06 15:55:18-05:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-03-06 15:55:18-05:00
log3dc8cb12e81dde268f558de1cf2c3d288bd1939f
treec4eb4cec5079034787bf09acb4e44ebdaa82fc2e
parenteaccfffe56655ab11a382685886492e5b9b0865c
signaturelock-open Commit is signed but in an unrecognized format.

ir: remove pointless and misleading code in `@embedFile`


1 files changed, 1 insertions(+), 3 deletions(-)

src/ir.cpp+1-3
...@@ -25048,9 +25048,7 @@ static IrInstGen *ir_analyze_instruction_embed_file(IrAnalyze *ira, IrInstSrcEmb...@@ -25048,9 +25048,7 @@ static IrInstGen *ir_analyze_instruction_embed_file(IrAnalyze *ira, IrInstSrcEmb
25048 }25048 }
25049 }25049 }
2505025050
25051 ZigType *result_type = get_array_type(ira->codegen,25051 IrInstGen *result = ir_const(ira, &instruction->base.base, nullptr);
25052 ira->codegen->builtin_types.entry_u8, buf_len(file_contents), nullptr);
25053 IrInstGen *result = ir_const(ira, &instruction->base.base, result_type);
25054 init_const_str_lit(ira->codegen, result->value, file_contents);25052 init_const_str_lit(ira->codegen, result->value, file_contents);
25055 return result;25053 return result;
25056}25054}