ir: remove pointless and misleading code in @embedFile

This commit is contained in:
Andrew Kelley 2020-03-06 15:55:18 -05:00
parent eaccfffe56
commit 3dc8cb12e8
No known key found for this signature in database
GPG Key ID: 7C5F548F728501A9

View File

@ -25048,9 +25048,7 @@ static IrInstGen *ir_analyze_instruction_embed_file(IrAnalyze *ira, IrInstSrcEmb
}
}
ZigType *result_type = get_array_type(ira->codegen,
ira->codegen->builtin_types.entry_u8, buf_len(file_contents), nullptr);
IrInstGen *result = ir_const(ira, &instruction->base.base, result_type);
IrInstGen *result = ir_const(ira, &instruction->base.base, nullptr);
init_const_str_lit(ira->codegen, result->value, file_contents);
return result;
}