mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 20:11:17 +00:00
Fixed accidental uses of global context.
This commit is contained in:
committed by
Christoffer Lerno
parent
6117a1be7c
commit
2c573c8a15
@@ -109,7 +109,7 @@ void gencontext_emit_function_body(GenContext *context, Decl *decl)
|
||||
context->current_block = entry;
|
||||
context->current_block_is_target = true;
|
||||
context->expr_block_exit = NULL;
|
||||
context->builder = LLVMCreateBuilder();
|
||||
context->builder = LLVMCreateBuilderInContext(context->context);
|
||||
LLVMPositionBuilderAtEnd(context->builder, entry);
|
||||
|
||||
LLVMValueRef alloca_point = LLVMBuildAlloca(context->builder, LLVMInt32TypeInContext(context->context), "alloca_point");
|
||||
|
||||
Reference in New Issue
Block a user