From ead0dbb55077d895ed479802fd31d03b98048438 Mon Sep 17 00:00:00 2001 From: David Gonzalez Martin Date: Fri, 26 Apr 2024 08:20:52 -0600 Subject: [PATCH] Fix MacOS build --- bootstrap/Compilation.zig | 2 +- bootstrap/backend/llvm.zig | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bootstrap/Compilation.zig b/bootstrap/Compilation.zig index b2422a4..bf1826c 100644 --- a/bootstrap/Compilation.zig +++ b/bootstrap/Compilation.zig @@ -575,7 +575,7 @@ pub fn compileCSourceFile(context: *const Context, arguments: []const []const u8 target_triple_buffer.appendSliceAssumeCapacity("x86_64-"); }, .aarch64 => { - target_triple_buffer.appendSliceAssumeCapacityppend_slice("aarch64-"); + target_triple_buffer.appendSliceAssumeCapacity("aarch64-"); }, else => @compileError("Architecture not supported"), } diff --git a/bootstrap/backend/llvm.zig b/bootstrap/backend/llvm.zig index 284b368..4272289 100644 --- a/bootstrap/backend/llvm.zig +++ b/bootstrap/backend/llvm.zig @@ -2526,7 +2526,7 @@ pub fn codegen(unit: *Compilation.Unit, context: *const Compilation.Context) !vo global_variable.setInitializer(constant_initializer); } - var phis = try PinnedHashMap(Compilation.Instruction.Index, *LLVM.Value.Instruction.PhiNode).init(0x1000); + var phis = try PinnedHashMap(Compilation.Instruction.Index, *LLVM.Value.Instruction.PhiNode).init(std.mem.page_size); for (llvm.function_definition_map.keys(), llvm.function_definition_map.values()) |function_declaration, function| { phis.clear();