mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Minor style change
This commit is contained in:
@@ -461,7 +461,7 @@ void lb_set_entity_from_other_modules_linkage_correctly(lbModule *other_module,
|
|||||||
lbValue lb_expr_untyped_const_to_typed(lbModule *m, Ast *expr, Type *t);
|
lbValue lb_expr_untyped_const_to_typed(lbModule *m, Ast *expr, Type *t);
|
||||||
bool lb_is_expr_untyped_const(Ast *expr);
|
bool lb_is_expr_untyped_const(Ast *expr);
|
||||||
|
|
||||||
LLVMValueRef llvm_alloca(lbProcedure *p, LLVMTypeRef llvm_type, isize alignment, char const* name = "");
|
LLVMValueRef llvm_alloca(lbProcedure *p, LLVMTypeRef llvm_type, isize alignment, char const *name = "");
|
||||||
|
|
||||||
void lb_mem_zero_ptr(lbProcedure *p, LLVMValueRef ptr, Type *type, unsigned alignment);
|
void lb_mem_zero_ptr(lbProcedure *p, LLVMValueRef ptr, Type *type, unsigned alignment);
|
||||||
|
|
||||||
|
|||||||
@@ -221,7 +221,7 @@ LLVMValueRef llvm_one(lbModule *m) {
|
|||||||
return LLVMConstInt(lb_type(m, t_i32), 1, false);
|
return LLVMConstInt(lb_type(m, t_i32), 1, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
LLVMValueRef llvm_alloca(lbProcedure *p, LLVMTypeRef llvm_type, isize alignment, char const* name) {
|
LLVMValueRef llvm_alloca(lbProcedure *p, LLVMTypeRef llvm_type, isize alignment, char const *name) {
|
||||||
LLVMPositionBuilderAtEnd(p->builder, p->decl_block->block);
|
LLVMPositionBuilderAtEnd(p->builder, p->decl_block->block);
|
||||||
|
|
||||||
LLVMValueRef val = LLVMBuildAlloca(p->builder, llvm_type, name);
|
LLVMValueRef val = LLVMBuildAlloca(p->builder, llvm_type, name);
|
||||||
|
|||||||
Reference in New Issue
Block a user