Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112372 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
ggreif committed Aug 28, 2010
1 parent ae2777c commit 13a8aff
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/Sema/SemaTemplateInstantiateDecl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1183,8 +1183,9 @@ Decl *TemplateDeclInstantiator::VisitFunctionDecl(FunctionDecl *D,
else for (FunctionDecl::redecl_iterator R = Function->redecls_begin(),
REnd = Function->redecls_end();
R != REnd; ++R) {
if (*R != Function &&
((*R)->getFriendObjectKind() != Decl::FOK_None)) {
if (*R == Function)
continue;
if ((*R)->getFriendObjectKind() != Decl::FOK_None) {
if (const FunctionDecl *RPattern
= (*R)->getTemplateInstantiationPattern())
if (RPattern->hasBody(RPattern)) {
Expand Down

0 comments on commit 13a8aff

Please sign in to comment.