Objective-C Class Properties: Autoupgrade "Class Properties" module flag.

When we have "Image Info Version" module flag but don't have "Class Properties"
module flag, set "Class Properties" module flag to 0, so we can correctly emit
errors when one module has the flag set and another module does not.

rdar://26469641


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@270791 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Manman Ren
2016-05-25 23:14:48 +00:00
parent d92afbd909
commit b9f73597f6
5 changed files with 48 additions and 0 deletions

View File

@@ -5634,6 +5634,8 @@ std::error_code BitcodeReader::materializeModule() {
UpgradedIntrinsics.clear();
UpgradeDebugInfo(*TheModule);
UpgradeModuleFlags(*TheModule);
return std::error_code();
}