Commit 3dc8cb12e8

Andrew Kelley <andrew@ziglang.org>
2020-03-06 21:55:18
ir: remove pointless and misleading code in `@embedFile`
1 parent eaccfff
Changed files (1)
src
src/ir.cpp
@@ -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;
 }