[cfe-commits] r112373 - /cfe/trunk/lib/Sema/SemaTemplateInstantiateDecl.cpp
Gabor Greif
ggreif at gmail.com
Sat Aug 28 08:46:56 PDT 2010
Author: ggreif
Date: Sat Aug 28 10:46:56 2010
New Revision: 112373
URL: http://llvm.org/viewvc/llvm-project?rev=112373&view=rev
Log:
simplify by relying on cascading operator->
Modified:
cfe/trunk/lib/Sema/SemaTemplateInstantiateDecl.cpp
Modified: cfe/trunk/lib/Sema/SemaTemplateInstantiateDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaTemplateInstantiateDecl.cpp?rev=112373&r1=112372&r2=112373&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaTemplateInstantiateDecl.cpp (original)
+++ cfe/trunk/lib/Sema/SemaTemplateInstantiateDecl.cpp Sat Aug 28 10:46:56 2010
@@ -1185,13 +1185,13 @@
R != REnd; ++R) {
if (*R == Function)
continue;
- if ((*R)->getFriendObjectKind() != Decl::FOK_None) {
+ if (R->getFriendObjectKind() != Decl::FOK_None) {
if (const FunctionDecl *RPattern
- = (*R)->getTemplateInstantiationPattern())
+ = R->getTemplateInstantiationPattern())
if (RPattern->hasBody(RPattern)) {
SemaRef.Diag(Function->getLocation(), diag::err_redefinition)
<< Function->getDeclName();
- SemaRef.Diag((*R)->getLocation(), diag::note_previous_definition);
+ SemaRef.Diag(R->getLocation(), diag::note_previous_definition);
Function->setInvalidDecl();
break;
}
More information about the cfe-commits
mailing list