Add ModuleFile::isSIB

We can't make the same assumptions about .sib files.

Ideally, we should serialize the module's stage and set WasDeserializedCanonical
based on that state. However, we probably still want the IsSIB flag for
assertions.
This commit is contained in:
Andrew Trick
2018-02-02 14:14:04 -08:00
parent 287ccece75
commit 66a579cc77
3 changed files with 9 additions and 2 deletions

View File

@@ -1115,6 +1115,7 @@ ModuleFile::ModuleFile(
Name = info.name;
TargetTriple = info.targetTriple;
CompatibilityVersion = info.compatibilityVersion;
IsSIB = extInfo->isSIB();
hasValidControlBlock = true;
break;