the external source to complete the Decl if it
hasn't been completed already.
This fixes a crash in LLDB.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152807
91177308-0d34-0410-b5e6-
96231b3b80d8
ASTContext::getObjCLayout(const ObjCInterfaceDecl *D,
const ObjCImplementationDecl *Impl) const {
// Retrieve the definition
+ if (D->hasExternalLexicalStorage() && !D->getDefinition())
+ getExternalSource()->CompleteType(const_cast<ObjCInterfaceDecl*>(D));
D = D->getDefinition();
assert(D && D->isThisDeclarationADefinition() && "Invalid interface decl!");