]> de.git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - ast.c
Introducing TYPE_NOEXPR so that these undefined labels cannot be used on the expressi...
[xonotic/gmqcc.git] / ast.c
diff --git a/ast.c b/ast.c
index 7d4b93dd28aa1c4acf254cbbe035491644a4a83e..b2b7064d8d43d6a47cfec1831b16c07ed4b6fec5 100644 (file)
--- a/ast.c
+++ b/ast.c
@@ -831,6 +831,8 @@ ast_label* ast_label_new(lex_ctx ctx, const char *name, bool undefined)
     ast_instantiate(ast_label, ctx, ast_label_delete);
     ast_expression_init((ast_expression*)self, (ast_expression_codegen*)&ast_label_codegen);
 
+    self->expression.vtype = TYPE_NOEXPR;
+
     self->name      = util_strdup(name);
     self->irblock   = NULL;
     self->gotos     = NULL;