[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:
Alexis Laferrière
2020-04-08 21:39:11 -07:00
parent f5fa89bb0c
commit 2fbc063b2e
6 changed files with 14 additions and 1 deletions

View File

@@ -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;