IRGen: More refactoring in preparation for emitting async function pointers for dispatch thunks

This commit is contained in:
Slava Pestov
2021-01-22 16:34:13 -05:00
parent c36c32027e
commit 8440a8226f
8 changed files with 44 additions and 26 deletions

View File

@@ -920,7 +920,7 @@ emitKeyPathComponent(IRGenModule &IGM,
idKind = KeyPathComponentHeader::Pointer;
// FIXME: Does this need to be signed?
auto idRef = IGM.getAddrOfLLVMVariableOrGOTEquivalent(
LinkEntity::forSILFunction(id.getFunction(), false));
LinkEntity::forSILFunction(id.getFunction()));
idValue = idRef.getValue();
// If we got an indirect reference, we'll need to resolve it at