diff --git a/includes/llvmlite/__builder.vp b/includes/llvmlite/__builder.vp index b694501..1b3737d 100644 --- a/includes/llvmlite/__builder.vp +++ b/includes/llvmlite/__builder.vp @@ -798,7 +798,6 @@ class IRBuilder: # 当 translate_value 返回非指针值(如 i32 常量 0)时, # 直接 GEP 会导致 llc 编译失败 if _is_ptr_type(ptr.Ty) == 0: - stdio.printf("[GEP-ERR] base not pointer, skip GEP\n") return None pool: memhub.MemBuddy | t.CPtr = self.Pool name: t.CChar | t.CPtr = self._alloc_ssa_name() diff --git a/includes/llvmlite/__types.vp b/includes/llvmlite/__types.vp index a3be5a9..d3afb58 100644 --- a/includes/llvmlite/__types.vp +++ b/includes/llvmlite/__types.vp @@ -329,7 +329,7 @@ class LLVMTypeCore: return Array(self.Pool, elem_ty, count) def Struct(self, fields: ParamNode | t.CPtr, fcount: t.CInt, - name: t.CChar | t.CPtr) -> LLVMType | t.CPtr: + name: t.CChar | t.CPtr = None) -> LLVMType | t.CPtr: return Struct(self.Pool, fields, fcount, name) def Void(self) -> LLVMType | t.CPtr: