aboutsummaryrefslogtreecommitdiff
path: root/src/ast_render.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2016-11-19 01:39:51 -0500
committerAndrew Kelley <superjoe30@gmail.com>2016-11-19 01:39:51 -0500
commit8a81f8aa1388331624e4c073e2534d3a987a7d9a (patch)
tree9bb160113429cf46e40cca3ea17337edfccdb974 /src/ast_render.cpp
parent19037014e5a25eaac9564d22cc04cf12fb6ef98e (diff)
downloadzig-8a81f8aa1388331624e4c073e2534d3a987a7d9a.tar.gz
zig-8a81f8aa1388331624e4c073e2534d3a987a7d9a.zip
IR: implement compileVar builtin and more
* implicit array to slice cast * fix if statements at global scope * implement array type IR
Diffstat (limited to 'src/ast_render.cpp')
-rw-r--r--src/ast_render.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ast_render.cpp b/src/ast_render.cpp
index aa536d07f3..0d7d7f13a9 100644
--- a/src/ast_render.cpp
+++ b/src/ast_render.cpp
@@ -696,7 +696,7 @@ static void render_node_extra(AstRender *ar, AstNode *node, bool grouped) {
fprintf(ar->f, ") ");
render_node_grouped(ar, node->data.if_bool_expr.then_block);
if (node->data.if_bool_expr.else_node) {
- fprintf(ar->f, "else ");
+ fprintf(ar->f, " else ");
render_node_grouped(ar, node->data.if_bool_expr.else_node);
}
break;