aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/codegen.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/codegen.c')
-rw-r--r--src/codegen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/codegen.c b/src/codegen.c
index db6514d..716660d 100644
--- a/src/codegen.c
+++ b/src/codegen.c
@@ -597,7 +597,7 @@ static void codegen_stmt(CodeGen* g, AstNode* ast) {
static void codegen_func(CodeGen* g, AstNode* ast) {
g->current_func = ast;
- if (ast->ty->result->storage_class != StorageClass_static) {
+ if (ast->ty->storage_class != StorageClass_static) {
fprintf(g->out, ".globl %s\n", ast->name);
}
fprintf(g->out, "%s:\n", ast->name);