aboutsummaryrefslogtreecommitdiff
path: root/src/ssa.cpp
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2017-06-12 11:48:12 +0100
committerGinger Bill <bill@gingerbill.org>2017-06-12 11:48:12 +0100
commit8fafdb185cefee691e1c2e1990abf8cd3c97ddf4 (patch)
tree8422ecb57d2d4f830ca6b76f54f0ad1a2f19f2a7 /src/ssa.cpp
parentc2c935ba818167a7056da5ac61687ecd2d97cc59 (diff)
Remove := with var and :: with const
Diffstat (limited to 'src/ssa.cpp')
-rw-r--r--src/ssa.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ssa.cpp b/src/ssa.cpp
index f3c187222..dd12832be 100644
--- a/src/ssa.cpp
+++ b/src/ssa.cpp
@@ -1969,7 +1969,7 @@ void ssa_build_stmt_internal(ssaProc *p, AstNode *node) {
case_end;
case_ast_node(vd, ValueDecl, node);
- if (vd->is_var) {
+ if (vd->token.kind == Token_var) {
ssaModule *m = p->module;
gbTempArenaMemory tmp = gb_temp_arena_memory_begin(&m->tmp_arena);
if (vd->values.count == 0) {