Skip to content

Commit 373cc8c

Browse files
committed
IRGen: Add a missing type for a GEP to please the next branch
rdar://80691793
1 parent a8a6f7c commit 373cc8c

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)