Runtime: Only complain about a deprecated ObjC entry point once.

We only need to alert the user once. rdar://problem/32229417
This commit is contained in:
Joe Groff
2017-05-17 10:27:38 -07:00
parent 5e31b5bab3
commit 80c6671c39
7 changed files with 36 additions and 5 deletions

View File

@@ -385,6 +385,12 @@ IRGenModule::IRGenModule(IRGenerator &irgen,
initClangTypeConverter();
if (ClangASTContext) {
auto atomicBoolTy = ClangASTContext->getAtomicType(ClangASTContext->BoolTy);
AtomicBoolSize = Size(ClangASTContext->getTypeSize(atomicBoolTy));
AtomicBoolAlign = Alignment(ClangASTContext->getTypeSize(atomicBoolTy));
}
IsSwiftErrorInRegister =
clang::CodeGen::swiftcall::isSwiftErrorLoweredInRegister(
ClangCodeGen->CGM());