IRGen: Address llvm::Type::getPointerTo deprecation

See https://github.com/llvm/llvm-project/pull/113331.
This commit is contained in:
Anthony Latsis
2025-07-21 10:43:27 +01:00
parent 2920ea84d1
commit f8577a2731
39 changed files with 485 additions and 802 deletions

View File

@@ -291,8 +291,7 @@ llvm::Constant *StructLayout::emitAlignMask(IRGenModule &IGM) const {
Address StructLayout::emitCastTo(IRGenFunction &IGF,
llvm::Value *ptr,
const llvm::Twine &name) const {
llvm::Value *addr =
IGF.Builder.CreateBitCast(ptr, getType()->getPointerTo(), name);
llvm::Value *addr = IGF.Builder.CreateBitCast(ptr, IGF.IGM.PtrTy, name);
return Address(addr, getType(), getAlignment());
}