Test commit

llvm-svn: 338885
This commit is contained in:
Bruno Ricci 2018-08-03 13:13:05 +00:00
parent c7ab495b4d
commit cfd225806d
1 changed files with 1 additions and 1 deletions

View File

@ -1017,7 +1017,7 @@ DeclContext::~DeclContext() = default;
/// a friend function the parent lookup context is the lexical context, which
/// is the class in which the friend is declared.
DeclContext *DeclContext::getLookupParent() {
// FIXME: Find a better way to identify friends
// FIXME: Find a better way to identify friends.
if (isa<FunctionDecl>(this))
if (getParent()->getRedeclContext()->isFileContext() &&
getLexicalParent()->getRedeclContext()->isRecord())