mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[serialization] Rename SILGenericOuterParamDeclID to SILGenericOuterParams.
Also, add the record to the block info for the SIL block, so that it can be inspected by llvm-bcanalyzer. Swift SVN r14417
This commit is contained in:
@@ -326,11 +326,11 @@ maybeReadGenericDeclContext(ModuleFile *MF, llvm::BitstreamCursor &Cursor) {
|
||||
return MF->getAssociatedModule();
|
||||
|
||||
unsigned kind = Cursor.readRecord(next.ID, scratch);
|
||||
if (kind != SIL_GENERIC_OUTER_PARAM_DECL_ID)
|
||||
if (kind != SIL_GENERIC_OUTER_PARAMS)
|
||||
return MF->getAssociatedModule();
|
||||
|
||||
uint64_t declID;
|
||||
SILGenericOuterParamDeclIDLayout::readRecord(scratch, declID);
|
||||
SILGenericOuterParamsLayout::readRecord(scratch, declID);
|
||||
return MF->getDeclContext((DeclID)declID);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user