Skip to content

Commit 481db13

Browse files
authored
Merge pull request swiftlang#38513 from aschwaighofer/fix_next_gep_type_arg
2 parents 34ae88e + 373cc8c commit 481db13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/IRGen/GenOpaque.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ llvm::Value *irgen::emitInvariantLoadOfOpaqueWitness(IRGenFunction &IGF,
321321
llvm::Value *slot = table;
322322
if (index.getValue() != 0)
323323
slot = IGF.Builder.CreateConstInBoundsGEP1_32(
324-
/*Ty=*/nullptr, table, index.getValue());
324+
table->getType()->getPointerElementType(), table, index.getValue());
325325

326326
if (slotPtr) *slotPtr = slot;
327327

0 commit comments

Comments
 (0)