Remember to set m_loaded_objc_opt once you've loaded the ObjC data

from the shared cache so you don't update it over & over.

<rdar://problem/20074768>

llvm-svn: 231514
This commit is contained in:
Jim Ingham 2015-03-06 20:57:17 +00:00
parent dba8012f69
commit ed1d079377
1 changed files with 2 additions and 0 deletions

View File

@ -1560,6 +1560,8 @@ AppleObjCRuntimeV2::UpdateISAToDescriptorMapIfNeeded()
DescriptorMapUpdateResult shared_cache_update_result = UpdateISAToDescriptorMapSharedCache();
if (!shared_cache_update_result.any_found)
WarnIfNoClassesCached ();
else
m_loaded_objc_opt = true;
}
}