mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
IRGen: Address llvm::Type::getPointerTo deprecation
See https://github.com/llvm/llvm-project/pull/113331.
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user