aboutsummaryrefslogtreecommitdiff
path: root/src/ir.cpp
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2017-06-12 16:47:07 +0100
committerGinger Bill <bill@gingerbill.org>2017-06-12 16:47:07 +0100
commitf52a1e4ded0f6cffb8722ec510a18f09718ba00a (patch)
tree71accc1cf397cdeea9b70590c587e0482594648e /src/ir.cpp
parenta8e458339b65669d088edf36bb96ffb518f68d2d (diff)
Fix IR bug for TypeSpec
Diffstat (limited to 'src/ir.cpp')
-rw-r--r--src/ir.cpp2
1 files changed, 1 insertions, 1 deletions
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);