From 607159ae4a22f982d113a09ae945827a4f591e13 Mon Sep 17 00:00:00 2001 From: TermiNexus Date: Mon, 17 Aug 2026 07:04:11 +0800 Subject: [PATCH] =?UTF-8?q?fix(gen):=20=E4=BF=AE=E5=A4=8D=20CallGenDispatc?= =?UTF-8?q?h/CallGenLib=20=E9=A6=96=E6=96=B9=E6=B3=95=E7=BC=A9=E8=BF=9B?= =?UTF-8?q?=EF=BC=888=20=E7=A9=BA=E6=A0=BC=E2=86=924=20=E7=A9=BA=E6=A0=BC?= =?UTF-8?q?=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App/lib/core/Gen/CallGenDispatch.vp | 2 +- App/lib/core/Gen/CallGenLib.vp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/App/lib/core/Gen/CallGenDispatch.vp b/App/lib/core/Gen/CallGenDispatch.vp index c396f71..0e7f46f 100644 --- a/App/lib/core/Gen/CallGenDispatch.vp +++ b/App/lib/core/Gen/CallGenDispatch.vp @@ -39,7 +39,7 @@ import lib.core.Gen.CallGenBase as CallGenBase class CallGenDispatch(CallGenBase.CallGenBase): """translate_call 前置检测 helper(继承 Base)""" - def _tc_h1_super_ctraits(self, pool: memhub.MemBuddy | t.CPtr, + def _tc_h1_super_ctraits(self, pool: memhub.MemBuddy | t.CPtr, builder: llvmlite.IRBuilder | t.CPtr, mod: llvmlite.LLVMModule | t.CPtr, cl: ast.Call | t.CPtr, diff --git a/App/lib/core/Gen/CallGenLib.vp b/App/lib/core/Gen/CallGenLib.vp index 97f09e1..4fba861 100644 --- a/App/lib/core/Gen/CallGenLib.vp +++ b/App/lib/core/Gen/CallGenLib.vp @@ -40,7 +40,7 @@ import lib.core.Gen.CallGenBase as CallGenBase class CallGenLib(CallGenBase.CallGenBase): """C 库声明 / 返回类型推断 / kwargs 调用辅助(继承 Base)""" - def _ensure_c_lib_declare(self, pool: memhub.MemBuddy | t.CPtr, + def _ensure_c_lib_declare(self, pool: memhub.MemBuddy | t.CPtr, mod: llvmlite.LLVMModule | t.CPtr, name: str) -> llvmlite.Function | t.CPtr: """为已知的 C 库函数创建 declare 声明"""