CharUnits EltSize,
const llvm::Twine &Name = "") {
return Address(CreateInBoundsGEP(Addr.getElementType(), Addr.getPointer(),
- {getSize(Index)}, Name),
+ getSize(Index), Name),
Addr.getAlignment().alignmentAtOffset(Index * EltSize));
}
Address CreateConstGEP(Address Addr, uint64_t Index, CharUnits EltSize,
const llvm::Twine &Name = "") {
return Address(CreateGEP(Addr.getElementType(), Addr.getPointer(),
- {getSize(Index)}, Name),
+ getSize(Index), Name),
Addr.getAlignment().alignmentAtOffset(Index * EltSize));
}