We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4ac647b + 0b0ad4a commit 823fa99Copy full SHA for 823fa99
lib/IRGen/GenStruct.cpp
@@ -376,8 +376,8 @@ namespace {
376
if (offset.getQuantity() != 0) {
377
auto baseAddrVal =
378
IGF.Builder.CreateBitCast(addr.getAddress(), IGF.IGM.Int8PtrTy);
379
- baseAddrVal =
380
- IGF.Builder.CreateConstGEP1_64(baseAddrVal, offset.getQuantity());
+ baseAddrVal = IGF.Builder.CreateConstGEP1_64(
+ IGF.IGM.Int8Ty, baseAddrVal, offset.getQuantity());
381
baseAddr = Address(baseAddrVal, Alignment(1));
382
}
383
0 commit comments