From baf5167171fa0159adb8bd55c6a111b006f8c038 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Tue, 24 Nov 2015 15:01:37 -0700 Subject: fix not using subtarget features --- src/codegen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/codegen.cpp') diff --git a/src/codegen.cpp b/src/codegen.cpp index a9e7383321..0f0f32b82f 100644 --- a/src/codegen.cpp +++ b/src/codegen.cpp @@ -423,7 +423,7 @@ void code_gen_link(CodeGen *g, bool is_static, const char *out_file) { LLVMTargetMachineRef target_machine = LLVMCreateTargetMachine(target_ref, native_triple, native_cpu, native_features, opt_level, reloc_mode, LLVMCodeModelDefault); - Buf out_file_o = {0}; + Buf out_file_o = BUF_INIT; buf_init_from_str(&out_file_o, out_file); buf_append_str(&out_file_o, ".o"); -- cgit v1.2.3