diff options
| author | Baitinq <[email protected]> | 2025-03-04 01:52:36 +0100 |
|---|---|---|
| committer | Baitinq <[email protected]> | 2025-03-04 01:52:36 +0100 |
| commit | 245065897d33aa8b407fff62309ce3de72e86fd4 (patch) | |
| tree | c10cecb36f48e32486a8a2ea9da44f23b49fcb49 | |
| parent | Codegen: Fix llvm compilation in macos (diff) | |
| download | interpreter-245065897d33aa8b407fff62309ce3de72e86fd4.tar.gz interpreter-245065897d33aa8b407fff62309ce3de72e86fd4.tar.bz2 interpreter-245065897d33aa8b407fff62309ce3de72e86fd4.zip | |
Codegen: Fix llvm codegen in macos
| -rw-r--r-- | src/codegen.zig | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/codegen.zig b/src/codegen.zig index 06e177c..9256776 100644 --- a/src/codegen.zig +++ b/src/codegen.zig @@ -43,8 +43,7 @@ pub const CodeGen = struct { const printf_function_type = core.LLVMFunctionType(core.LLVMVoidType(), @constCast(&[_]types.LLVMTypeRef{ core.LLVMPointerType(core.LLVMInt8Type(), 0), - core.LLVMInt64Type(), - }), 2, 1); + }), 1, 1); const printf_function = core.LLVMAddFunction(self.llvm_module, "printf", printf_function_type) orelse return CodeGenError.CompilationError; try self.environment.add_variable("printf", try self.create_variable(.{ .value = printf_function, |