aboutsummaryrefslogtreecommitdiff
path: root/src/codegen.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2015-11-24 15:01:37 -0700
committerAndrew Kelley <superjoe30@gmail.com>2015-11-24 15:01:37 -0700
commitbaf5167171fa0159adb8bd55c6a111b006f8c038 (patch)
tree47f207dea456ffb79c38fbab0fac32707a4e2778 /src/codegen.cpp
parentfefbee166d68d17dd0d5904fc52f72397fb51092 (diff)
downloadzig-baf5167171fa0159adb8bd55c6a111b006f8c038.tar.gz
zig-baf5167171fa0159adb8bd55c6a111b006f8c038.zip
fix not using subtarget features
Diffstat (limited to 'src/codegen.cpp')
-rw-r--r--src/codegen.cpp2
1 files changed, 1 insertions, 1 deletions
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");