Skip to content

Commit 0b0ad4a

Browse files
committed
IRGen: Fix use of deprecated API warning
NFC rdar://89841981
1 parent 2ddadc2 commit 0b0ad4a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/IRGen/GenStruct.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -376,8 +376,8 @@ namespace {
376376
if (offset.getQuantity() != 0) {
377377
auto baseAddrVal =
378378
IGF.Builder.CreateBitCast(addr.getAddress(), IGF.IGM.Int8PtrTy);
379-
baseAddrVal =
380-
IGF.Builder.CreateConstGEP1_64(baseAddrVal, offset.getQuantity());
379+
baseAddrVal = IGF.Builder.CreateConstGEP1_64(
380+
IGF.IGM.Int8Ty, baseAddrVal, offset.getQuantity());
381381
baseAddr = Address(baseAddrVal, Alignment(1));
382382
}
383383

0 commit comments

Comments
 (0)