Compare commits

..

1 Commits

Author SHA1 Message Date
259382da28 Compile the compiler
All checks were successful
CI / ci (Release, ubuntu-latest) (pull_request) Successful in 5m53s
CI / ci (MinSizeRel, ubuntu-latest) (pull_request) Successful in 5m58s
CI / ci (RelWithDebInfo, ubuntu-latest) (pull_request) Successful in 5m56s
CI / ci (Debug, ubuntu-latest) (pull_request) Successful in 19m16s
2025-06-20 10:47:06 -06:00

View File

@ -7339,7 +7339,7 @@ fn void emit_value(Module* module, Value* value, TypeKind type_kind, bool expect
{
assert(unary_type->id == TypeId::integer);
auto is_signed = unary_type->integer.is_signed;
auto max_value = integer_max_value(unary_type->integer.bit_count, is_signed);
auto max_value = integer_max_value(resolved_value_type->integer.bit_count, is_signed);
auto constant_integer = LLVMConstInt(resolved_value_type->llvm.abi, max_value, is_signed);
llvm_value = constant_integer;
} break;