mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Serialization] Note the misc version field of modules on deser. failures
This added information will hopefully help us understand hard to reproduce deserialization failures.
This commit is contained in:
@@ -274,6 +274,7 @@ validateControlBlock(llvm::BitstreamCursor &cursor,
|
||||
break;
|
||||
}
|
||||
|
||||
result.miscVersion = blobData;
|
||||
versionSeen = true;
|
||||
break;
|
||||
}
|
||||
@@ -1673,6 +1674,7 @@ ModuleFile::ModuleFile(
|
||||
TargetTriple = info.targetTriple;
|
||||
CompatibilityVersion = info.compatibilityVersion;
|
||||
IsSIB = extInfo->isSIB();
|
||||
MiscVersion = info.miscVersion;
|
||||
|
||||
hasValidControlBlock = true;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user