Fix IR bug for TypeSpec

This commit is contained in:
Ginger Bill
2017-06-12 16:47:07 +01:00
parent a8e458339b
commit f52a1e4ded
2 changed files with 2 additions and 2 deletions

View File

@@ -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);