mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-29 10:50:05 +00:00
Fix IR bug for TypeSpec
This commit is contained in:
@@ -263,7 +263,7 @@ String get_fullpath_core(gbAllocator a, String path) {
|
|||||||
void init_build_context(void) {
|
void init_build_context(void) {
|
||||||
BuildContext *bc = &build_context;
|
BuildContext *bc = &build_context;
|
||||||
bc->ODIN_VENDOR = str_lit("odin");
|
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();
|
bc->ODIN_ROOT = odin_root_dir();
|
||||||
|
|
||||||
#if defined(GB_SYSTEM_WINDOWS)
|
#if defined(GB_SYSTEM_WINDOWS)
|
||||||
|
|||||||
+1
-1
@@ -5871,7 +5871,7 @@ void ir_build_stmt_internal(irProcedure *proc, AstNode *node) {
|
|||||||
} break;
|
} break;
|
||||||
|
|
||||||
case Token_type: {
|
case Token_type: {
|
||||||
ast_node(td, TypeSpec, node);
|
ast_node(td, TypeSpec, spec);
|
||||||
|
|
||||||
AstNode *ident = td->name;
|
AstNode *ident = td->name;
|
||||||
GB_ASSERT(ident->kind == AstNode_Ident);
|
GB_ASSERT(ident->kind == AstNode_Ident);
|
||||||
|
|||||||
Reference in New Issue
Block a user