From f52a1e4ded0f6cffb8722ec510a18f09718ba00a Mon Sep 17 00:00:00 2001 From: Ginger Bill Date: Mon, 12 Jun 2017 16:47:07 +0100 Subject: [PATCH] Fix IR bug for TypeSpec --- src/build_settings.cpp | 2 +- src/ir.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/build_settings.cpp b/src/build_settings.cpp index eb8a50c6a..68e8ec372 100644 --- a/src/build_settings.cpp +++ b/src/build_settings.cpp @@ -263,7 +263,7 @@ String get_fullpath_core(gbAllocator a, String path) { void init_build_context(void) { BuildContext *bc = &build_context; bc->ODIN_VENDOR = str_lit("odin"); - bc->ODIN_VERSION = str_lit("0.3.0"); + bc->ODIN_VERSION = str_lit("0.4.0"); bc->ODIN_ROOT = odin_root_dir(); #if defined(GB_SYSTEM_WINDOWS) diff --git a/src/ir.cpp b/src/ir.cpp index accdeb86e..da7b052c9 100644 --- a/src/ir.cpp +++ b/src/ir.cpp @@ -5871,7 +5871,7 @@ void ir_build_stmt_internal(irProcedure *proc, AstNode *node) { } break; case Token_type: { - ast_node(td, TypeSpec, node); + ast_node(td, TypeSpec, spec); AstNode *ident = td->name; GB_ASSERT(ident->kind == AstNode_Ident);