diff options
| -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, |