Several fixes for the compiler (#2422)

* Update .gitignore for nix

* Fix build failure when compiling with -Werror=maybe-uninitialized

* Fix test failure formatting

* Add separateDebugInfo to c3c Nix build
This commit is contained in:
vssukharev
2025-08-20 22:47:22 +03:00
committed by GitHub
parent 28ffb864a3
commit b7c9a4e2e9
4 changed files with 10 additions and 6 deletions

View File

@@ -2643,8 +2643,8 @@ static void llvm_emit_slice_values(GenContext *c, Expr *slice, BEValue *parent_r
BEValue parent_addr_x;
llvm_emit_expr(c, &parent_addr_x, parent_expr);
LLVMValueRef parent_load_value = NULL;
LLVMValueRef parent_base;
LLVMValueRef parent_addr;
LLVMValueRef parent_base = NULL;
LLVMValueRef parent_addr = NULL;
if (parent_type->type_kind == TYPE_POINTER)
{
llvm_value_rvalue(c, &parent_addr_x);