aboutsummaryrefslogtreecommitdiff
path: root/src/ir_print.cpp
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2017-07-29 13:01:17 +0100
committerGinger Bill <bill@gingerbill.org>2017-07-29 13:01:17 +0100
commit24c812115e8cbc905b1a5c1d73182da5db94dfde (patch)
tree7b22566bc3c85ba91f478e416a6f9063ec3b8188 /src/ir_print.cpp
parent1df4aa90ce10dca629b8af73e74f884ab2339096 (diff)
Remove empty union check on array types; Fix overflowing error printing
Diffstat (limited to 'src/ir_print.cpp')
-rw-r--r--src/ir_print.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ir_print.cpp b/src/ir_print.cpp
index 23c385140..f54671519 100644
--- a/src/ir_print.cpp
+++ b/src/ir_print.cpp
@@ -1733,7 +1733,7 @@ void print_llvm_ir(irGen *ir) {
ir_file_buffer_init(f, &ir->output_file);
ir_print_encoded_local(f, str_lit("..opaque"));
- ir_fprintf(f, " = type opaque;\n");
+ ir_fprintf(f, " = type {};\n");
ir_print_encoded_local(f, str_lit("..string"));
ir_fprintf(f, " = type {i8*, ");
ir_print_type(f, m, t_int);