llvm.Builder: Update some intrinsic definitions for LLVM 19.
This commit is contained in:
@@ -5902,7 +5902,7 @@ pub const FuncGen = struct {
|
||||
const result_alignment = va_list_ty.abiAlignment(pt.zcu).toLlvm();
|
||||
const dest_list = try self.buildAllocaWorkaround(va_list_ty, result_alignment);
|
||||
|
||||
_ = try self.wip.callIntrinsic(.normal, .none, .va_copy, &.{}, &.{ dest_list, src_list }, "");
|
||||
_ = try self.wip.callIntrinsic(.normal, .none, .va_copy, &.{dest_list.typeOfWip(&self.wip)}, &.{ dest_list, src_list }, "");
|
||||
return if (isByRef(va_list_ty, zcu))
|
||||
dest_list
|
||||
else
|
||||
@@ -5913,7 +5913,7 @@ pub const FuncGen = struct {
|
||||
const un_op = self.air.instructions.items(.data)[@intFromEnum(inst)].un_op;
|
||||
const src_list = try self.resolveInst(un_op);
|
||||
|
||||
_ = try self.wip.callIntrinsic(.normal, .none, .va_end, &.{}, &.{src_list}, "");
|
||||
_ = try self.wip.callIntrinsic(.normal, .none, .va_end, &.{src_list.typeOfWip(&self.wip)}, &.{src_list}, "");
|
||||
return .none;
|
||||
}
|
||||
|
||||
@@ -5927,7 +5927,7 @@ pub const FuncGen = struct {
|
||||
const result_alignment = va_list_ty.abiAlignment(pt.zcu).toLlvm();
|
||||
const dest_list = try self.buildAllocaWorkaround(va_list_ty, result_alignment);
|
||||
|
||||
_ = try self.wip.callIntrinsic(.normal, .none, .va_start, &.{}, &.{dest_list}, "");
|
||||
_ = try self.wip.callIntrinsic(.normal, .none, .va_start, &.{dest_list.typeOfWip(&self.wip)}, &.{dest_list}, "");
|
||||
return if (isByRef(va_list_ty, zcu))
|
||||
dest_list
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user